wheel.util
Class DynamicSelectModel

java.lang.Object
  extended by wheel.util.DynamicSelectModel
All Implemented Interfaces:
ISelectModel

public class DynamicSelectModel
extends java.lang.Object
implements ISelectModel


Constructor Summary
DynamicSelectModel()
           
DynamicSelectModel(ElExpression collection, ElExpression label, ElExpression value)
           
 
Method Summary
 DynamicSelectModel collection(java.lang.String collection)
           
 DynamicSelectModel enumeration(java.lang.String enumeration)
           
 Component getComponent()
           
 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.
 StandaloneComponent getTopLevelComponent()
           
 java.lang.String getValue(int index)
          Returns the String value that identifies the object in a html form.
 DynamicSelectModel label(java.lang.String label)
           
 void setComponent(Component component)
           
 void setTopLevelComponent(StandaloneComponent topLevelComponent)
           
 java.lang.Object translateValue(java.lang.String value)
          Translates the given String value (from form submit) to the corresponding Object.
 void validate()
           
 DynamicSelectModel value(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicSelectModel

public DynamicSelectModel(ElExpression collection,
                          ElExpression label,
                          ElExpression value)

DynamicSelectModel

public DynamicSelectModel()
Method Detail

collection

public DynamicSelectModel collection(java.lang.String collection)

label

public DynamicSelectModel label(java.lang.String label)

value

public DynamicSelectModel value(java.lang.String value)

enumeration

public DynamicSelectModel enumeration(java.lang.String enumeration)

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:

getObjects

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

getComponent

public Component getComponent()

setComponent

public void setComponent(Component component)

getTopLevelComponent

public StandaloneComponent getTopLevelComponent()

setTopLevelComponent

public void setTopLevelComponent(StandaloneComponent topLevelComponent)

validate

public void validate()


Copyright © 2007-2008. All Rights Reserved.