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()
IPropertySelectionModel
getOptionCount
in interface IPropertySelectionModel
public java.lang.Object getOption(int index)
IPropertySelectionModel
getOption
in interface IPropertySelectionModel
public java.lang.String getLabel(int index)
IPropertySelectionModel
getLabel
in interface IPropertySelectionModel
public java.lang.String getValue(int index)
IPropertySelectionModel
getValue
in interface IPropertySelectionModel
public java.lang.Object translateValue(java.lang.String value)
IPropertySelectionModel
translateValue
in interface IPropertySelectionModel