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)
HasColors
panel.setBackgroundColor(BLUE);
setBackgroundColor
in interface HasColors
public Color getBackgroundColor()
getBackgroundColor
in interface HasColors
public void setTextColor(Color textColor)
HasColors
panel.setTextColor(BLUE_DARKEN_2);
setTextColor
in interface HasColors
public Color getTextColor()
getTextColor
in interface HasColors
protected String ensureTextColorFormat(String textColor)
public void setUiObject(T uiObject)
Copyright © 2018. All rights reserved.