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