public interface HasTheme extends HasElement
Component which has theme attribute.| Modifier and Type | Method and Description |
|---|---|
default void |
addThemeName(String themeName)
Adds a theme name to this component.
|
default void |
addThemeNames(String... themeNames)
Adds one or more theme names to this component.
|
default String |
getThemeName()
Gets the theme names for this component.
|
default ThemeList |
getThemeNames()
Gets the set of theme names used for this element.
|
default boolean |
hasThemeName(String themeName)
Checks if the component has the given theme name.
|
default boolean |
removeThemeName(String themeName)
Removes a theme name from this component.
|
default void |
removeThemeNames(String... themeNames)
Removes one or more theme names from component.
|
default void |
setThemeName(String themeName)
Sets the theme names of this component.
|
default void |
setThemeName(String themeName,
boolean set)
Sets or removes the given theme name for this component.
|
getElementdefault void addThemeName(String themeName)
themeName - the theme name to add, not nulldefault boolean removeThemeName(String themeName)
themeName - the theme name to remove, not nulltrue if the theme name was removed,
false if the theme list didn't contain the theme
namedefault void setThemeName(String themeName)
themeName - a space-separated string of theme names to set, or empty
string to remove all theme namesdefault String getThemeName()
null if attribute (theme) is
not set at alldefault ThemeList getThemeNames()
theme attribute.nullElement.getThemeList()default void setThemeName(String themeName, boolean set)
themeName - the theme name to set or remove, not nullset - true to set the theme name, false to
remove itdefault boolean hasThemeName(String themeName)
themeName - the theme name to check fortrue if the component has the given theme name,
false otherwisedefault void addThemeNames(String... themeNames)
themeNames - the theme name or theme names to be added to the componentdefault void removeThemeNames(String... themeNames)
themeNames - the theme name or theme names to be removed from the componentCopyright © 2025. All rights reserved.