|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.coerce.StringConvertedPropertySelectionModel
public final class StringConvertedPropertySelectionModel
IPropertySelectionModel created from a comma-seperated string by
StringToPropertySelectionModelConverter.
| Constructor Summary | |
|---|---|
StringConvertedPropertySelectionModel(java.lang.String[] terms)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringConvertedPropertySelectionModel(java.lang.String[] terms)
| Method Detail |
|---|
public int getOptionCount()
IPropertySelectionModel
getOptionCount in interface IPropertySelectionModelpublic java.lang.Object getOption(int index)
IPropertySelectionModel
getOption in interface IPropertySelectionModelpublic java.lang.String getLabel(int index)
IPropertySelectionModel
getLabel in interface IPropertySelectionModelpublic java.lang.String getValue(int index)
IPropertySelectionModel
getValue in interface IPropertySelectionModelpublic java.lang.Object translateValue(java.lang.String value)
IPropertySelectionModel
translateValue in interface IPropertySelectionModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||