public class ThemeDefinition extends Object implements Serializable
Theme
,
UI.getThemeFor(Class, String)
,
Serialized FormConstructor and Description |
---|
ThemeDefinition(Class<? extends AbstractTheme> theme,
String variant)
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 |
---|---|
Class<? extends AbstractTheme> |
getTheme()
Gets the theme class.
|
String |
getVariant()
Gets the variant of the theme.
|
public ThemeDefinition(Class<? extends AbstractTheme> theme, String variant)
theme
- the theme class, not null
variant
- the variant of the theme, not null
public ThemeDefinition(Theme themeAnnotation)
themeAnnotation
- the annotation to get the definition frompublic Class<? extends AbstractTheme> getTheme()
public String getVariant()
Copyright © 2018. All rights reserved.