public class WidgetSelectOptionImpl extends Object implements WidgetSelectOption
| Modifier and Type | Field and Description | 
|---|---|
protected Serializable | 
itemDisabled  | 
protected String | 
itemLabel  | 
protected Serializable | 
itemRendered  | 
protected String | 
itemValue  | 
protected Map<String,String> | 
labels  | 
protected Serializable | 
value  | 
protected String | 
var  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
WidgetSelectOptionImpl()  | 
  | 
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()  | 
boolean | 
equals(Object obj)  | 
Serializable | 
getItemDisabled()
Returns the disabled behaviour for the select option. 
 | 
String | 
getItemLabel()
Returns the item label for the select option. 
 | 
String | 
getItemLabel(String locale)
Getter to handle l10n localization of select options. 
 | 
Map<String,String> | 
getItemLabels()
Getter to handle l10n localization of select options. 
 | 
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() | 
void | 
setItemLabels(Map<String,String> labels)  | 
protected Serializable value
protected Serializable itemDisabled
protected Serializable itemRendered
protected WidgetSelectOptionImpl()
public WidgetSelectOptionImpl(String itemLabel, String itemValue)
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 getItemLabel(String locale)
WidgetSelectOptiongetItemLabel in interface WidgetSelectOptionpublic Map<String,String> getItemLabels()
WidgetSelectOptiongetItemLabels in interface WidgetSelectOptionpublic void setItemLabels(Map<String,String> labels)
public 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 © 2019 Nuxeo. All rights reserved.