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 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 getItemLabel(String locale)
WidgetSelectOption
getItemLabel
in interface WidgetSelectOption
public Map<String,String> getItemLabels()
WidgetSelectOption
getItemLabels
in interface WidgetSelectOption
public 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 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 © 2018 Nuxeo. All rights reserved.