|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wheel.util.StringSelectModel
public class StringSelectModel
Constructor Summary | |
---|---|
StringSelectModel()
|
Method Summary | |
---|---|
void |
addValue(java.lang.String label,
java.lang.String value)
|
void |
clear()
|
java.lang.String |
getLabel(int index)
Returns the label to use in the html-presentation for a given index. |
java.util.Collection |
getObjects()
|
int |
getOptionCount()
Returns the total number of objects. |
java.lang.String |
getValue(int index)
Returns the String value that identifies the object in a html form. |
java.lang.Object |
translateValue(java.lang.String value)
Translates the given String value (from form submit) to the corresponding Object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringSelectModel()
Method Detail |
---|
public int getOptionCount()
ISelectModel
getOptionCount
in interface ISelectModel
public java.lang.String getLabel(int index)
ISelectModel
getLabel
in interface ISelectModel
public java.lang.String getValue(int index)
ISelectModel
getValue
in interface ISelectModel
public java.lang.Object translateValue(java.lang.String value)
ISelectModel
translateValue
in interface ISelectModel
public void addValue(java.lang.String label, java.lang.String value)
public java.util.Collection getObjects()
getObjects
in interface ISelectModel
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |