public final class StringConvertedPropertySelectionModel extends java.lang.Object implements IPropertySelectionModel
IPropertySelectionModel created from a comma-seperated string by
StringToPropertySelectionModelConverter.| Constructor and Description |
|---|
StringConvertedPropertySelectionModel(java.lang.String[] terms) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLabel(int index)
Returns the label for an option.
|
java.lang.Object |
getOption(int index)
Returns one possible option that will be assigned to the server-side property.
|
int |
getOptionCount()
Returns the number of possible options.
|
java.lang.String |
getValue(int index)
Returns a String used to represent the option in the HTML (as the value of an <option>
or <input type=radio>.
|
java.lang.Object |
translateValue(java.lang.String value)
Returns the option corresponding to a value.
|
public StringConvertedPropertySelectionModel(java.lang.String[] terms)
public int getOptionCount()
IPropertySelectionModelgetOptionCount in interface IPropertySelectionModelpublic java.lang.Object getOption(int index)
IPropertySelectionModelgetOption in interface IPropertySelectionModelpublic java.lang.String getLabel(int index)
IPropertySelectionModelgetLabel in interface IPropertySelectionModelpublic java.lang.String getValue(int index)
IPropertySelectionModelgetValue in interface IPropertySelectionModelpublic java.lang.Object translateValue(java.lang.String value)
IPropertySelectionModeltranslateValue in interface IPropertySelectionModel