public class CSSColorParameter extends CSSParameter
AbstractSkinParameter
for a CSS property of type color (color, background-color, border-color)AbstractSkinParameter.SkinParameterType, AbstractSkinParameter.Widget
Modifier and Type | Field and Description |
---|---|
private static Pattern |
__HEX_HASH_LESS_PATTERN |
private static Pattern |
__HEX_PATTERN |
private SkinModel |
_model |
private SkinFactoryComponent |
_skinFactory |
_description, _id, _label
Constructor and Description |
---|
CSSColorParameter(String id,
I18nizableText label,
I18nizableText description,
File cssFile,
String cssProperty,
String defaultValue,
SkinModel model,
SkinFactoryComponent skinFactory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
apply(File tempDir,
File modelDir,
Object value,
String lang)
Apply parameter to the skin
|
addCSSFile, cssFileToString, getCSSFiles, getCSSPattern, getCSSProperty, getDefaultValue, getDefaultValue, getType, toJson, toSAX
getDescription, getId, getLabel, setDescription, setLabel
private static final Pattern __HEX_HASH_LESS_PATTERN
private static final Pattern __HEX_PATTERN
private SkinFactoryComponent _skinFactory
public CSSColorParameter(String id, I18nizableText label, I18nizableText description, File cssFile, String cssProperty, String defaultValue, SkinModel model, SkinFactoryComponent skinFactory)
id
- the unique idlabel
- the labeldescription
- the descriptioncssFile
- the css filecssProperty
- the css propertydefaultValue
- the default valuemodel
- the modelskinFactory
- the skin factory managerpublic void apply(File tempDir, File modelDir, Object value, String lang) throws SkinParameterException
AbstractSkinParameter
apply
in class CSSParameter
tempDir
- the work directorymodelDir
- the model directoryvalue
- the valuelang
- The language. Can be null.SkinParameterException