Class FlavorDescriptor


  • public class FlavorDescriptor
    extends Object
    A flavor represents the set of information that can be used to switch the theme styling on a given page.

    It holds presets that can be referenced in CSS files, as well as logo information. It can extend another flavor, in case it will its logo and presets. The name and label are not inherited.

    At registration, presets and log information are merged of a previous contribution with the same name already held that kind of information. When emptying the list of presets.

    Since:
    5.5
    • Constructor Detail

      • FlavorDescriptor

        public FlavorDescriptor()
    • Method Detail

      • getAppendPresets

        public boolean getAppendPresets()
      • getAppendSass

        public boolean getAppendSass()
        Since:
        7.4
      • getExtendsFlavor

        public String getExtendsFlavor()
      • getLabel

        public String getLabel()
      • getName

        public String getName()
      • getSassImports

        public List<SassImport> getSassImports()
        Since:
        7.4
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setAppendPresets

        public void setAppendPresets​(boolean appendPresets)
      • setAppendSass

        public void setAppendSass​(boolean appendSass)
        Since:
        7.4
      • setExtendsFlavor

        public void setExtendsFlavor​(String extendsFlavor)
      • setLabel

        public void setLabel​(String label)
      • setName

        public void setName​(String name)
      • setPalettePreview

        public void setPalettePreview​(PalettePreview palettePreview)
      • setSassImports

        public void setSassImports​(List<SassImport> sassImports)
        Since:
        7.4