com.vaadin.flow.theme.
Class ThemeDefinition
All Implemented Interfaces:
Holds all the settings needed to properly set a Theme in the application.
Since:
1.0.
Author:
Vaadin Ltd
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThemeDefinition
(Theme themeAnnotation) Helper constructor that extracts the needed information from a Theme annotation.
ThemeDefinition
(Class<? extends AbstractTheme> theme, String variant, String name) Creates a definition with the given them class and variant.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the name of the theme.
Class<? extends AbstractTheme>
getTheme()
Gets the theme class.
Gets the variant of the theme.
-
Constructor Details
-
ThemeDefinition
Creates a definition with the given them class and variant.
Parameters:
theme
- the theme class, notnull
variant
- the variant of the theme, notnull
name
- name of the theme, notnull
-
ThemeDefinition
Helper constructor that extracts the needed information from a Theme annotation.
Parameters:
themeAnnotation
- the annotation to get the definition from
-
-
Method Details
-
getTheme
Gets the theme class.
Returns:
the theme class
-
getVariant
Gets the variant of the theme.
Returns:
the variant
-
getName
Gets the name of the theme.
Returns:
name of the theme
-