|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.util.AbstractSelectModel
org.chenillekit.tapestry.core.models.OgnlSelectModel<T>
public class OgnlSelectModel<T>
Defines the possible options for a <select> [X]HTML element. This select model implementation based on OGNL.
User. Each User object contains
an object typed Address, and every Address object contains
a property name.
If you want to display in the list the value of the name property you should define a
labelExpression like address.name
| Constructor Summary | |
|---|---|
OgnlSelectModel(List<T> objectList,
String labelExpression)
constructs an ognl select model. |
|
OgnlSelectModel(String labelExpression)
constructs an ognl select model. |
|
| Method Summary | |
|---|---|
List<OptionGroupModel> |
getOptionGroups()
The list of groups, returns always null |
List<OptionModel> |
getOptions()
The list of ungrouped options, which appear after any grouped options. |
void |
setObjectList(List<T> objectList)
set the object list. |
| Methods inherited from class org.apache.tapestry5.util.AbstractSelectModel |
|---|
visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OgnlSelectModel(String labelExpression)
labelExpression - the ognl expression converted to label.
public OgnlSelectModel(List<T> objectList,
String labelExpression)
objectList - list of objects that should listed by select taglabelExpression - the ognl expression converted to label.| Method Detail |
|---|
public void setObjectList(List<T> objectList)
objectList - the object listpublic List<OptionGroupModel> getOptionGroups()
public List<OptionModel> getOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||