Class I18nizableTextParameter
java.lang.Object
org.ametys.skinfactory.parameters.AbstractSkinParameter
org.ametys.skinfactory.parameters.I18nizableTextParameter
Implementation of
AbstractSkinParameter for a i18niable text-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.skinfactory.parameters.AbstractSkinParameter
AbstractSkinParameter.SkinParameterType, AbstractSkinParameter.Widget -
Constructor Summary
ConstructorsConstructorDescriptionI18nizableTextParameter(String id, I18nizableText label, I18nizableText description, String i18nKey, Map<String, String> defaultValues) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidApply parameter to the skingetDefaultValue(SkinModel model) Get the default valuegetDefaultValue(SkinModel model, String lang) Get the default valueGet default valuesGet the i18n keygetType()Get typevoidSet the i18n keyTransform the parameter into a JSON objectvoidtoSAX(ContentHandler contentHandler, String modelName) SAX the parameterMethods inherited from class org.ametys.skinfactory.parameters.AbstractSkinParameter
getDescription, getId, getLabel, setDescription, setLabel
-
Constructor Details
-
I18nizableTextParameter
public I18nizableTextParameter(String id, I18nizableText label, I18nizableText description, String i18nKey, Map<String, String> defaultValues) Constructor- Parameters:
id- the unique idlabel- the labeldescription- the descriptioni18nKey- the i18n keydefaultValues- the default values
-
-
Method Details
-
getType
Description copied from class:AbstractSkinParameterGet type- Specified by:
getTypein classAbstractSkinParameter- Returns:
- The type
-
geti18nKey
Get the i18n key- Returns:
- the i18n key
-
setKey
Set the i18n key- Parameters:
i18nKey- the i18n key to set
-
apply
Description copied from class:AbstractSkinParameterApply parameter to the skin- Specified by:
applyin classAbstractSkinParameter- Parameters:
tempDir- the work directorymodelDir- the model directoryvalue- the valuelang- The language. Can be null.
-
toSAX
Description copied from class:AbstractSkinParameterSAX the parameter- Specified by:
toSAXin classAbstractSkinParameter- Parameters:
contentHandler- The content handler to SAX intomodelName- The model name- Throws:
SAXException- if an error occurred while SAXing
-
toJson
Description copied from class:AbstractSkinParameterTransform the parameter into a JSON object- Specified by:
toJsonin classAbstractSkinParameter- Parameters:
modelName- The model name- Returns:
- The JSON representation of the parameter
-
getDefaultValues
Get default values- Returns:
- The default values
-
getDefaultValue
Description copied from class:AbstractSkinParameterGet the default value- Specified by:
getDefaultValuein classAbstractSkinParameter- Parameters:
model- The model- Returns:
- The default value
-
getDefaultValue
Description copied from class:AbstractSkinParameterGet the default value- Specified by:
getDefaultValuein classAbstractSkinParameter- Parameters:
model- The modellang- The language- Returns:
- The default value
-