public class WidgetSelectOptionImpl extends Object implements WidgetSelectOption
| Constructor and Description |
|---|
WidgetSelectOptionImpl(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) |
| Modifier and Type | Method and Description |
|---|---|
WidgetSelectOption |
clone() |
Serializable |
getItemDisabled()
Returns the disabled behaviour for the select option.
|
String |
getItemLabel()
Returns the item label for the select option.
|
Serializable |
getItemRendered()
Returns the rendered behaviour for the select option.
|
String |
getItemValue()
Returns the item value for the select option.
|
String |
getTagConfigId()
Returns the unique identifier of this select option to be used in tag
configuration.
|
Serializable |
getValue()
Returns the value representing the option.
|
String |
getVar()
Returns the var representing the value returned by
WidgetSelectOption.getValue() |
public WidgetSelectOptionImpl(Serializable value, String var, String itemLabel, String itemValue)
public WidgetSelectOptionImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered)
public Serializable getValue()
WidgetSelectOption
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.
getValue in interface WidgetSelectOptionpublic String getVar()
WidgetSelectOptionWidgetSelectOption.getValue()
This value can be used in the potential EL expressions returned by
WidgetSelectOption.getItemLabel(), WidgetSelectOption.getItemValue(),
WidgetSelectOption.getItemDisabled() and WidgetSelectOption.getItemRendered().
getVar in interface WidgetSelectOptionpublic String getItemLabel()
WidgetSelectOption
This can be an EL expression if WidgetSelectOption.getValue() and
WidgetSelectOption.getVar() return a non-null value.
getItemLabel in interface WidgetSelectOptionpublic String getItemValue()
WidgetSelectOption
This can be an EL expression if WidgetSelectOption.getValue() and
WidgetSelectOption.getVar() return a non-null value.
getItemValue in interface WidgetSelectOptionpublic Serializable getItemDisabled()
WidgetSelectOptionThis 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.
getItemDisabled in interface WidgetSelectOptionpublic Serializable getItemRendered()
WidgetSelectOptionThis 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 in interface WidgetSelectOptionpublic String getTagConfigId()
WidgetSelectOptiongetTagConfigId in interface WidgetSelectOptionLayout#getTagConfigId()}.public WidgetSelectOption clone()
clone in interface WidgetSelectOptionclone in class ObjectCopyright © 2014 Nuxeo SA. All Rights Reserved.