public class ColorHelper extends Object
Constructor and Description |
---|
ColorHelper() |
Modifier and Type | Method and Description |
---|---|
static <E extends Enum<? extends com.google.gwt.dom.client.Style.HasCssName>> |
fromStyleName(String styleName,
Class<E> enumClass,
E defaultValue)
Returns first enum constant found..
|
protected static String |
getComputedBackgroundColor(com.google.gwt.dom.client.Element e)
Native call to getComputedStyle.
|
static String |
setupComputedBackgroundColor(Color color) |
public ColorHelper()
public static <E extends Enum<? extends com.google.gwt.dom.client.Style.HasCssName>> E fromStyleName(String styleName, Class<E> enumClass, E defaultValue)
styleName
- Space-separated list of stylesenumClass
- Type of enumdefaultValue
- Default value of no match was foundpublic static String setupComputedBackgroundColor(Color color)
protected static String getComputedBackgroundColor(com.google.gwt.dom.client.Element e)
Copyright © 2018. All rights reserved.