public class ColorsMixin<T extends com.google.gwt.user.client.ui.UIObject & HasColors> extends Object implements HasColors
| Constructor and Description |
|---|
ColorsMixin(T widget) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
ensureTextColorFormat(String textColor)
Allow for the use of text shading and auto formatting.
|
Color |
getBackgroundColor() |
Color |
getTextColor() |
void |
setBackgroundColor(Color bgColor)
Sets the background color of material components, for example:
|
void |
setTextColor(Color textColor)
Set the text color of material components, for example:
|
void |
setUiObject(T uiObject) |
public ColorsMixin(T widget)
public void setBackgroundColor(Color bgColor)
HasColorspanel.setBackgroundColor(BLUE);
setBackgroundColor in interface HasColorspublic Color getBackgroundColor()
getBackgroundColor in interface HasColorspublic void setTextColor(Color textColor)
HasColorspanel.setTextColor(BLUE_DARKEN_2);
setTextColor in interface HasColorspublic Color getTextColor()
getTextColor in interface HasColorsprotected String ensureTextColorFormat(String textColor)
public void setUiObject(T uiObject)
Copyright © 2018. All rights reserved.