public class ThemeDefinition extends Object implements Serializable
Theme,
UI.getThemeFor(Class, String),
Serialized Form| Constructor and Description |
|---|
ThemeDefinition(Class<? extends AbstractTheme> theme,
String variant,
String name)
Creates a definition with the given them class and variant.
|
ThemeDefinition(Theme themeAnnotation)
Helper constructor that extracts the needed information from a Theme
annotation.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the theme.
|
Class<? extends AbstractTheme> |
getTheme()
Gets the theme class.
|
String |
getVariant()
Gets the variant of the theme.
|
public ThemeDefinition(Class<? extends AbstractTheme> theme, String variant, String name)
theme - the theme class, not nullvariant - the variant of the theme, not nullname - name of the theme, not nullpublic ThemeDefinition(Theme themeAnnotation)
themeAnnotation - the annotation to get the definition frompublic Class<? extends AbstractTheme> getTheme()
public String getVariant()
public String getName()
Copyright © 2025. All rights reserved.