Class FlavorDescriptor
java.lang.Object
org.nuxeo.theme.styling.service.descriptors.FlavorDescriptor
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
boolean
boolean
getLabel()
getLogo()
getName()
int
hashCode()
void
merge
(FlavorDescriptor src) void
setAppendPresets
(boolean appendPresets) void
setAppendSass
(boolean appendSass) void
setExtendsFlavor
(String extendsFlavor) void
setFavicons
(List<IconDescriptor> favicons) void
void
setLogo
(LogoDescriptor logo) void
void
setPalettePreview
(PalettePreview palettePreview) void
setPresets
(List<FlavorPresets> presets) void
setSassImports
(List<SassImport> sassImports)
-
Constructor Details
-
FlavorDescriptor
public FlavorDescriptor()
-
-
Method Details
-
clone
-
equals
-
getAppendPresets
public boolean getAppendPresets() -
getAppendSass
public boolean getAppendSass()- Since:
- 7.4
-
getExtendsFlavor
-
getFavicons
- Since:
- 7.4
-
getLabel
-
getLogo
-
getName
-
getPalettePreview
-
getPresets
-
getSassImports
- Since:
- 7.4
-
hashCode
public int hashCode() -
merge
-
setAppendPresets
public void setAppendPresets(boolean appendPresets) -
setAppendSass
public void setAppendSass(boolean appendSass) - Since:
- 7.4
-
setExtendsFlavor
-
setFavicons
- Since:
- 7.4
-
setLabel
-
setLogo
-
setName
-
setPalettePreview
-
setPresets
-
setSassImports
- Since:
- 7.4
-