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 WidgetSelectOption
public String getVar()
WidgetSelectOption
WidgetSelectOption.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 WidgetSelectOption
public String getItemLabel()
WidgetSelectOption
This can be an EL expression if WidgetSelectOption.getValue()
and
WidgetSelectOption.getVar()
return a non-null value.
getItemLabel
in interface WidgetSelectOption
public String getItemValue()
WidgetSelectOption
This can be an EL expression if WidgetSelectOption.getValue()
and
WidgetSelectOption.getVar()
return a non-null value.
getItemValue
in interface WidgetSelectOption
public Serializable getItemDisabled()
WidgetSelectOption
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.
getItemDisabled
in interface WidgetSelectOption
public Serializable getItemRendered()
WidgetSelectOption
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
in interface WidgetSelectOption
public String getTagConfigId()
WidgetSelectOption
getTagConfigId
in interface WidgetSelectOption
Layout#getTagConfigId()}.
public WidgetSelectOption clone()
clone
in interface WidgetSelectOption
clone
in class Object
Copyright © 2011 Nuxeo SA. All Rights Reserved.