|
||||||||||
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 IPropertySelectionModel
public Object getOption(int index)
IPropertySelectionModel
getOption
in interface IPropertySelectionModel
public String getLabel(int index)
IPropertySelectionModel
getLabel
in interface IPropertySelectionModel
public String getValue(int index)
IPropertySelectionModel
getValue
in interface IPropertySelectionModel
public boolean isDisabled(int index)
IPropertySelectionModel
disabled
attribute.
isDisabled
in interface IPropertySelectionModel
index
- 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 |