Class CSSColorParameter
java.lang.Object
org.ametys.skinfactory.parameters.AbstractSkinParameter
org.ametys.skinfactory.parameters.CSSParameter
org.ametys.skinfactory.parameters.CSSColorParameter
Implementation of
AbstractSkinParameter
for a CSS property of type color (color, background-color, border-color)-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.skinfactory.parameters.AbstractSkinParameter
AbstractSkinParameter.SkinParameterType, AbstractSkinParameter.Widget
-
Constructor Summary
ConstructorDescriptionCSSColorParameter
(String id, I18nizableText label, I18nizableText description, Path cssFile, String cssProperty, String defaultValue, SkinModel model, SkinFactoryComponent skinFactory) Constructor -
Method Summary
Methods inherited from class org.ametys.skinfactory.parameters.CSSParameter
addCSSFile, cssFileToString, getCSSFiles, getCSSPattern, getCSSProperty, getDefaultValue, getDefaultValue, getType, toJson, toSAX
Methods inherited from class org.ametys.skinfactory.parameters.AbstractSkinParameter
getDescription, getId, getLabel, setDescription, setLabel
-
Constructor Details
-
CSSColorParameter
public CSSColorParameter(String id, I18nizableText label, I18nizableText description, Path cssFile, String cssProperty, String defaultValue, SkinModel model, SkinFactoryComponent skinFactory) Constructor- Parameters:
id
- the unique idlabel
- the labeldescription
- the descriptioncssFile
- the css filecssProperty
- the css propertydefaultValue
- the default valuemodel
- the modelskinFactory
- the skin factory manager
-
-
Method Details
-
apply
public void apply(Path tempDir, Path modelDir, Object value, String lang) throws SkinParameterException Description copied from class:AbstractSkinParameter
Apply parameter to the skin- Overrides:
apply
in classCSSParameter
- Parameters:
tempDir
- the work directorymodelDir
- the model directoryvalue
- the valuelang
- The language. Can be null.- Throws:
SkinParameterException
-