Package com.storedobject.vaadin
Enum Class ThemeStyle
- All Implemented Interfaces:
- Serializable,- Comparable<ThemeStyle>,- Constable
A utility class to handle "theme" attribute of an 
Element.- Author:
- Syam
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidadd(com.vaadin.flow.component.HasElement component, ThemeStyle... styles) Add theme styles.static voidadd(com.vaadin.flow.dom.Element element, ThemeStyle... styles) Add theme styles.static voidclear(com.vaadin.flow.component.HasElement component) Remove all theme styles.static voidclear(com.vaadin.flow.dom.Element element) Remove all theme styles.static voidremove(com.vaadin.flow.component.HasElement component, ThemeStyle... styles) Remove theme styles.static voidremove(com.vaadin.flow.dom.Element element, ThemeStyle... styles) Remove theme styles.static voidset(com.vaadin.flow.component.HasElement component, ThemeStyle... styles) Set theme styles.static voidset(com.vaadin.flow.dom.Element element, ThemeStyle... styles) Set theme styles.toString()static ThemeStyleReturns the enum constant of this class with the specified name.static ThemeStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
SUCCESSSuccess.
- 
ERRORError.
- 
PILLPill.
- 
CONTRASTContrast.
- 
SMALLSmall.
- 
PRIMARYPrimary.
- 
ICONIcon.
- 
BADGEBadge.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
toString- Overrides:
- toStringin class- Enum<ThemeStyle>
 
- 
setSet theme styles.- Parameters:
- component- Element to act upon
- styles- Theme styles to set
 
- 
setSet theme styles.- Parameters:
- element- Element to act upon
- styles- Theme styles to set
 
- 
addAdd theme styles.- Parameters:
- component- Element to act upon
- styles- Theme styles to add
 
- 
addAdd theme styles.- Parameters:
- element- Element to act upon
- styles- Theme styles to add
 
- 
clearpublic static void clear(com.vaadin.flow.component.HasElement component) Remove all theme styles.- Parameters:
- component- Element to act upon
 
- 
clearpublic static void clear(com.vaadin.flow.dom.Element element) Remove all theme styles.- Parameters:
- element- Element to act upon
 
- 
removeRemove theme styles.- Parameters:
- component- Element to act upon
- styles- Theme styles to remove
 
- 
removeRemove theme styles.- Parameters:
- element- Element to act upon
- styles- Theme styles to remove
 
 
-