com.vaadin.flow.theme.

Class ThemeDefinition

    • Constructor Detail

      • ThemeDefinition

        public ThemeDefinition(Class<? extends AbstractTheme> theme,
                               String variant)

        Creates a definition with the given them class and variant.

        Parameters:

        theme - the theme class, not null

        variant - the variant of the theme, not null

      • ThemeDefinition

        public ThemeDefinition(Theme themeAnnotation)

        Helper constructor that extracts the needed information from a Theme annotation.

        Parameters:

        themeAnnotation - the annotation to get the definition from

    • Method Detail

      • getTheme

        public Class<? extends AbstractTheme> getTheme()

        Gets the theme class.

        Returns:

        the theme class

      • getVariant

        public String getVariant()

        Gets the variant of the theme.

        Returns:

        the variant