|
||||||||||
| 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(String[] terms)
|
|
| Method Summary | |
|---|---|
String |
getLabel(int index)
Returns the label for an option. |
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. |
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>. |
boolean |
isDisabled(int index)
Used to help rendering of options that should be marked with the html disabled
attribute. |
Object |
translateValue(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(String[] terms)
| Method Detail |
|---|
public int getOptionCount()
IPropertySelectionModel
getOptionCount in interface IPropertySelectionModelpublic Object getOption(int index)
IPropertySelectionModel
getOption in interface IPropertySelectionModelpublic String getLabel(int index)
IPropertySelectionModel
getLabel in interface IPropertySelectionModelpublic String getValue(int index)
IPropertySelectionModel
getValue in interface IPropertySelectionModelpublic boolean isDisabled(int index)
IPropertySelectionModeldisabled
attribute.
isDisabled in interface IPropertySelectionModelindex - The option to check.
public Object translateValue(String value)
IPropertySelectionModel
translateValue in interface IPropertySelectionModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||