|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wheel.util.DynamicSelectModel
public class DynamicSelectModel
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 |
---|
public DynamicSelectModel(ElExpression collection, ElExpression label, ElExpression value)
public DynamicSelectModel()
Method Detail |
---|
public DynamicSelectModel collection(java.lang.String collection)
public DynamicSelectModel label(java.lang.String label)
public DynamicSelectModel value(java.lang.String value)
public DynamicSelectModel enumeration(java.lang.String enumeration)
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 java.util.Collection getObjects()
getObjects
in interface ISelectModel
public Component getComponent()
public void setComponent(Component component)
public StandaloneComponent getTopLevelComponent()
public void setTopLevelComponent(StandaloneComponent topLevelComponent)
public void validate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |