public final class EnumHelper extends Object
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 in at space-separated list of style names.
|
static <E extends Enum<? extends com.google.gwt.dom.client.Style.HasCssName>> |
fromStyleName(String styleName,
Class<E> enumClass,
E defaultValue,
boolean ignoreSpaces)
Returns first enum constant found in at space-separated list of style names.
|
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 <E extends Enum<? extends com.google.gwt.dom.client.Style.HasCssName>> E fromStyleName(String styleName, Class<E> enumClass, E defaultValue, boolean ignoreSpaces)
styleName
- Space-separated list of stylesenumClass
- Type of enumdefaultValue
- Default value of no match was foundCopyright © 2018. All rights reserved.