public class WidgetSelectOptionsImpl extends Object implements WidgetSelectOptions
Modifier and Type | Field and Description |
---|---|
protected Boolean |
caseSensitive |
protected Serializable |
itemDisabled |
protected String |
itemLabel |
protected Serializable |
itemRendered |
protected String |
itemValue |
protected Map<String,String> |
labels |
protected String |
ordering |
protected Serializable |
value |
protected String |
var |
Modifier | Constructor and Description |
---|---|
protected |
WidgetSelectOptionsImpl() |
|
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) |
Modifier and Type | Method and Description |
---|---|
WidgetSelectOptions |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCaseSensitive()
Returns true if ordering should be case sensitive?
|
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 |
getOrdering()
Returns a string used for ordering of options.
|
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 Boolean caseSensitive
protected WidgetSelectOptionsImpl()
public WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue)
public WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered)
public WidgetSelectOptionsImpl(Serializable value, String var, String itemLabel, String itemValue, Serializable itemDisabled, Serializable itemRendered, String ordering, Boolean caseSensitive)
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 getOrdering()
WidgetSelectOptions
Sample possible values are 'id' and 'label'.
getOrdering
in interface WidgetSelectOptions
public Boolean getCaseSensitive()
WidgetSelectOptions
getCaseSensitive
in interface WidgetSelectOptions
public String getTagConfigId()
WidgetSelectOption
getTagConfigId
in interface WidgetSelectOption
Layout#getTagConfigId()}.
public WidgetSelectOptions clone()
clone
in interface WidgetSelectOption
clone
in class Object
Copyright © 2018 Nuxeo. All rights reserved.