public class ThemeDefinition extends Object implements Serializable
Theme
,
UI.getThemeFor(Class, String)
,
Serialized FormConstructor 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 null
variant
- the variant of the theme, not null
name
- name of the theme, not null
public 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.