Class WidgetSelectOptionImpl
- All Implemented Interfaces:
Serializable,WidgetSelectOption
- Since:
- 5.4.2
- Author:
- Anahide Tchertchian
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Serializableprotected Stringprotected Serializableprotected Stringprotected Serializableprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWidgetSelectOptionImpl(Serializable value, String var, String itemLabel, String itemValue) WidgetSelectOptionImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered) WidgetSelectOptionImpl(String itemLabel, String itemValue) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanReturns the disabled behaviour for the select option.Returns the item label for the select option.getItemLabel(String locale) Getter to handle l10n localization of select options.Getter to handle l10n localization of select options.Returns the rendered behaviour for the select option.Returns the item value for the select option.Returns the unique identifier of this select option to be used in tag configuration.getValue()Returns the value representing the option.getVar()Returns the var representing the value returned byWidgetSelectOption.getValue()voidsetItemLabels(Map<String, String> labels)
-
Field Details
-
value
-
var
-
itemLabel
-
labels
-
itemValue
-
itemDisabled
-
itemRendered
-
-
Constructor Details
-
WidgetSelectOptionImpl
protected WidgetSelectOptionImpl() -
WidgetSelectOptionImpl
-
WidgetSelectOptionImpl
-
WidgetSelectOptionImpl
public WidgetSelectOptionImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered)
-
-
Method Details
-
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
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
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
Description copied from interface:WidgetSelectOptionGetter to handle l10n localization of select options.- Specified by:
getItemLabelin interfaceWidgetSelectOption
-
getItemLabels
Description copied from interface:WidgetSelectOptionGetter to handle l10n localization of select options.- Specified by:
getItemLabelsin interfaceWidgetSelectOption
-
setItemLabels
-
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
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
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
-
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:
-
clone
- Specified by:
clonein interfaceWidgetSelectOption- Overrides:
clonein classObject
-
equals
-