public abstract class AbstractSkinParameter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSkinParameter.SkinParameterType
Enumeration of supported types
|
class |
AbstractSkinParameter.Widget
Widget class
|
Modifier and Type | Field and Description |
---|---|
(package private) I18nizableText |
_description |
(package private) String |
_id |
(package private) I18nizableText |
_label |
Constructor and Description |
---|
AbstractSkinParameter(String id,
I18nizableText label,
I18nizableText description)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract void |
apply(File tempDir,
File modelDir,
Object value,
String lang)
Apply parameter to the skin
|
abstract Object |
getDefaultValue(SkinModel model)
Get the default value
|
abstract Object |
getDefaultValue(SkinModel model,
String lang)
Get the default value
|
I18nizableText |
getDescription()
Get the description
|
String |
getId()
Get the unique id
|
I18nizableText |
getLabel()
Get the label
|
abstract AbstractSkinParameter.SkinParameterType |
getType()
Get type
|
void |
setDescription(I18nizableText description)
Set the description
|
void |
setLabel(I18nizableText label)
Set the label
|
abstract Map<String,Object> |
toJson(String modelName)
Transform the parameter into a JSON object
|
abstract void |
toSAX(ContentHandler contentHandler,
String modelName)
SAX the parameter
|
I18nizableText _label
I18nizableText _description
public AbstractSkinParameter(String id, I18nizableText label, I18nizableText description)
id
- the unique idlabel
- the labeldescription
- the descriptionpublic I18nizableText getLabel()
public void setLabel(I18nizableText label)
label
- the label to setpublic I18nizableText getDescription()
public void setDescription(I18nizableText description)
description
- the description to setpublic abstract AbstractSkinParameter.SkinParameterType getType()
public abstract void apply(File tempDir, File modelDir, Object value, String lang)
tempDir
- the work directorymodelDir
- the model directoryvalue
- the valuelang
- The language. Can be null.public abstract void toSAX(ContentHandler contentHandler, String modelName) throws SAXException
contentHandler
- The content handler to SAX intomodelName
- The model nameSAXException
- if an error occurred while SAXingpublic abstract Map<String,Object> toJson(String modelName)
modelName
- The model namepublic abstract Object getDefaultValue(SkinModel model)
model
- The modelpublic abstract Object getDefaultValue(SkinModel model, String lang)
model
- The modellang
- The language