Class WidgetSelectOptionsImpl
- All Implemented Interfaces:
Serializable
,WidgetSelectOption
,WidgetSelectOptions
- Since:
- 5.4.2
- Author:
- Anahide Tchertchian
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Boolean
protected Serializable
protected String
protected Serializable
protected String
protected String
protected Serializable
protected String
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionclone()
boolean
Returns true if ordering should be case sensitive?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 a string used for ordering of options.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()
void
setItemLabels
(Map<String, String> labels)
-
Field Details
-
value
-
var
-
itemLabel
-
labels
-
itemValue
-
itemDisabled
-
itemRendered
-
ordering
-
caseSensitive
-
-
Constructor Details
-
WidgetSelectOptionsImpl
protected WidgetSelectOptionsImpl() -
WidgetSelectOptionsImpl
-
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 Details
-
getValue
Description copied from interface:WidgetSelectOption
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
WidgetSelectOption.getVar()
method to retrieve the id and label from the object.- Specified by:
getValue
in interfaceWidgetSelectOption
-
getVar
Description copied from interface:WidgetSelectOption
Returns 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:
getVar
in interfaceWidgetSelectOption
-
getItemLabel
Description copied from interface:WidgetSelectOption
Returns 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:
getItemLabel
in interfaceWidgetSelectOption
-
getItemLabel
Description copied from interface:WidgetSelectOption
Getter to handle l10n localization of select options.- Specified by:
getItemLabel
in interfaceWidgetSelectOption
-
getItemLabels
Description copied from interface:WidgetSelectOption
Getter to handle l10n localization of select options.- Specified by:
getItemLabels
in interfaceWidgetSelectOption
-
setItemLabels
-
getItemValue
Description copied from interface:WidgetSelectOption
Returns 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:
getItemValue
in interfaceWidgetSelectOption
-
getItemDisabled
Description copied from interface:WidgetSelectOption
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.
- Specified by:
getItemDisabled
in interfaceWidgetSelectOption
-
getItemRendered
Description copied from interface:WidgetSelectOption
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.
- Specified by:
getItemRendered
in interfaceWidgetSelectOption
-
getOrdering
Description copied from interface:WidgetSelectOptions
Returns a string used for ordering of options.Sample possible values are 'id' and 'label'.
- Specified by:
getOrdering
in interfaceWidgetSelectOptions
-
getCaseSensitive
Description copied from interface:WidgetSelectOptions
Returns true if ordering should be case sensitive?- Specified by:
getCaseSensitive
in interfaceWidgetSelectOptions
-
getTagConfigId
Description copied from interface:WidgetSelectOption
Returns the unique identifier of this select option to be used in tag configuration.- Specified by:
getTagConfigId
in interfaceWidgetSelectOption
- See Also:
-
clone
- Specified by:
clone
in interfaceWidgetSelectOption
- Overrides:
clone
in classObject
-
equals
-