Class WidgetSelectOptionsImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.forms.layout.api.impl.WidgetSelectOptionsImpl
-
- All Implemented Interfaces:
Serializable,WidgetSelectOption,WidgetSelectOptions
public class WidgetSelectOptionsImpl extends Object implements WidgetSelectOptions
- Since:
- 5.4.2
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleancaseSensitiveprotected SerializableitemDisabledprotected StringitemLabelprotected SerializableitemRenderedprotected StringitemValueprotected Map<String,String>labelsprotected Stringorderingprotected Serializablevalueprotected Stringvar
-
Constructor Summary
Constructors Modifier Constructor Description protectedWidgetSelectOptionsImpl()WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue)WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered)WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered, String ordering, Boolean caseSensitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WidgetSelectOptionsclone()booleanequals(Object obj)BooleangetCaseSensitive()Returns true if ordering should be case sensitive?SerializablegetItemDisabled()Returns the disabled behaviour for the select option.StringgetItemLabel()Returns the item label for the select option.StringgetItemLabel(String locale)Getter to handle l10n localization of select options.Map<String,String>getItemLabels()Getter to handle l10n localization of select options.SerializablegetItemRendered()Returns the rendered behaviour for the select option.StringgetItemValue()Returns the item value for the select option.StringgetOrdering()Returns a string used for ordering of options.StringgetTagConfigId()Returns the unique identifier of this select option to be used in tag configuration.SerializablegetValue()Returns the value representing the option.StringgetVar()Returns the var representing the value returned byWidgetSelectOption.getValue()voidsetItemLabels(Map<String,String> labels)
-
-
-
Field Detail
-
value
protected Serializable value
-
var
protected String var
-
itemLabel
protected String itemLabel
-
itemValue
protected String itemValue
-
itemDisabled
protected Serializable itemDisabled
-
itemRendered
protected Serializable itemRendered
-
ordering
protected String ordering
-
caseSensitive
protected Boolean caseSensitive
-
-
Constructor Detail
-
WidgetSelectOptionsImpl
protected WidgetSelectOptionsImpl()
-
WidgetSelectOptionsImpl
public WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue)
-
WidgetSelectOptionsImpl
public WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered)
-
WidgetSelectOptionsImpl
public WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered, String ordering, Boolean caseSensitive)
-
-
Method Detail
-
getValue
public Serializable getValue()
Description copied from interface:WidgetSelectOptionReturns the value representing the option.This value is optional when using static label and values, it can be useful to use it in conjunction with the
WidgetSelectOption.getVar()method to retrieve the id and label from the object.- Specified by:
getValuein interfaceWidgetSelectOption
-
getVar
public String getVar()
Description copied from interface:WidgetSelectOptionReturns the var representing the value returned byWidgetSelectOption.getValue()This value can be used in the potential EL expressions returned by
WidgetSelectOption.getItemLabel(),WidgetSelectOption.getItemValue(),WidgetSelectOption.getItemDisabled()andWidgetSelectOption.getItemRendered().- Specified by:
getVarin interfaceWidgetSelectOption
-
getItemLabel
public String getItemLabel()
Description copied from interface:WidgetSelectOptionReturns the item label for the select option.This can be an EL expression if
WidgetSelectOption.getValue()andWidgetSelectOption.getVar()return a non-null value.- Specified by:
getItemLabelin interfaceWidgetSelectOption
-
getItemLabel
public String getItemLabel(String locale)
Description copied from interface:WidgetSelectOptionGetter to handle l10n localization of select options.- Specified by:
getItemLabelin interfaceWidgetSelectOption
-
getItemLabels
public Map<String,String> getItemLabels()
Description copied from interface:WidgetSelectOptionGetter to handle l10n localization of select options.- Specified by:
getItemLabelsin interfaceWidgetSelectOption
-
getItemValue
public String getItemValue()
Description copied from interface:WidgetSelectOptionReturns the item value for the select option.This can be an EL expression if
WidgetSelectOption.getValue()andWidgetSelectOption.getVar()return a non-null value.- Specified by:
getItemValuein interfaceWidgetSelectOption
-
getItemDisabled
public Serializable getItemDisabled()
Description copied from interface:WidgetSelectOptionReturns the disabled behaviour for the select option.This value can either be an EL expression that should resolve to a boolean value, either a string representing a boolean ("true" or "false") either a Boolean value.
- Specified by:
getItemDisabledin interfaceWidgetSelectOption
-
getItemRendered
public Serializable getItemRendered()
Description copied from interface:WidgetSelectOptionReturns the rendered behaviour for the select option.This value can either be an EL expression that should resolve to a boolean value, either a string representing a boolean ("true" or "false") either a Boolean value.
- Specified by:
getItemRenderedin interfaceWidgetSelectOption
-
getOrdering
public String getOrdering()
Description copied from interface:WidgetSelectOptionsReturns a string used for ordering of options.Sample possible values are 'id' and 'label'.
- Specified by:
getOrderingin interfaceWidgetSelectOptions
-
getCaseSensitive
public Boolean getCaseSensitive()
Description copied from interface:WidgetSelectOptionsReturns true if ordering should be case sensitive?- Specified by:
getCaseSensitivein interfaceWidgetSelectOptions
-
getTagConfigId
public String getTagConfigId()
Description copied from interface:WidgetSelectOptionReturns the unique identifier of this select option to be used in tag configuration.- Specified by:
getTagConfigIdin interfaceWidgetSelectOption- See Also:
Layout.getTagConfigId()
-
clone
public WidgetSelectOptions clone()
- Specified by:
clonein interfaceWidgetSelectOption- Overrides:
clonein classObject
-
-