wheel.util
Class StringSelectModel

java.lang.Object
  extended by wheel.util.StringSelectModel
All Implemented Interfaces:
java.io.Serializable, ISelectModel

public class StringSelectModel
extends java.lang.Object
implements ISelectModel, java.io.Serializable

See Also:
Serialized Form

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

StringSelectModel

public StringSelectModel()
Method Detail

getOptionCount

public int getOptionCount()
Description copied from interface: ISelectModel
Returns the total number of objects.

Specified by:
getOptionCount in interface ISelectModel
Returns:

getLabel

public java.lang.String getLabel(int index)
Description copied from interface: ISelectModel
Returns the label to use in the html-presentation for a given index.

Specified by:
getLabel in interface ISelectModel
Returns:

getValue

public java.lang.String getValue(int index)
Description copied from interface: ISelectModel
Returns the String value that identifies the object in a html form.

Specified by:
getValue in interface ISelectModel
Returns:

translateValue

public java.lang.Object translateValue(java.lang.String value)
Description copied from interface: ISelectModel
Translates the given String value (from form submit) to the corresponding Object.

Specified by:
translateValue in interface ISelectModel
Returns:

addValue

public void addValue(java.lang.String label,
                     java.lang.String value)

getObjects

public java.util.Collection getObjects()
Specified by:
getObjects in interface ISelectModel

clear

public void clear()


Copyright © 2007-2008. All Rights Reserved.