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.
|
String |
getBackgroundColor() |
String |
getTextColor() |
void |
setBackgroundColor(String bgColor)
Sets the background color of material components, for example:
|
void |
setTextColor(String textColor)
Set the text color of material components, for example:
|
void |
setUiObject(T uiObject) |
public ColorsMixin(T widget)
public void setBackgroundColor(String bgColor)
HasColorspanel.setBackgroundColor("blue");setBackgroundColor in interface HasColorspublic String getBackgroundColor()
getBackgroundColor in interface HasColorspublic void setTextColor(String textColor)
HasColorspanel.setTextColor("blue darken-2");setTextColor in interface HasColorspublic String getTextColor()
getTextColor in interface HasColorsprotected String ensureTextColorFormat(String textColor)
public void setUiObject(T uiObject)
Copyright © 2016. All rights reserved.