Interface WidgetSelectOption
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
WidgetSelectOptions
- All Known Implementing Classes:
WidgetSelectOptionImpl
,WidgetSelectOptionsImpl
WidgetDefinition
and Widget
generated from the definition.- Since:
- 5.4.2
- Author:
- Anahide Tchertchian
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns 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 bygetValue()
-
Method Details
-
getValue
Serializable getValue()Returns 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
getVar()
method to retrieve the id and label from the object. -
getVar
String getVar()Returns the var representing the value returned bygetValue()
This value can be used in the potential EL expressions returned by
getItemLabel()
,getItemValue()
,getItemDisabled()
andgetItemRendered()
. -
getItemLabel
String getItemLabel()Returns the item label for the select option.This can be an EL expression if
getValue()
andgetVar()
return a non-null value. -
getItemLabel
Getter to handle l10n localization of select options.- Since:
- 6.0
-
getItemLabels
Getter to handle l10n localization of select options.- Since:
- 6.0
-
getItemValue
String getItemValue()Returns the item value for the select option.This can be an EL expression if
getValue()
andgetVar()
return a non-null value. -
getItemDisabled
Serializable getItemDisabled()Returns 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.
-
getItemRendered
Serializable getItemRendered()Returns 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.
-
getTagConfigId
String getTagConfigId()Returns the unique identifier of this select option to be used in tag configuration.- See Also:
-
clone
WidgetSelectOption clone()- Since:
- 5.5
-