|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.internal.services.SelectModelFactoryImpl
public class SelectModelFactoryImpl
Constructor Summary | |
---|---|
SelectModelFactoryImpl(PropertyAccess propertyAccess,
ValueEncoderSource valueEncoderSource)
|
Method Summary | |
---|---|
SelectModel |
create(java.util.List<?> objects,
java.lang.String labelProperty)
Creates a SelectModel from a list of objects of the same type and a label property name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectModelFactoryImpl(PropertyAccess propertyAccess, ValueEncoderSource valueEncoderSource)
Method Detail |
---|
public SelectModel create(java.util.List<?> objects, java.lang.String labelProperty)
SelectModelFactory
SelectModel
from a list of objects of the same type and a label property name.
The returned model creates for every object in the list a selectable option and relies on existing
ValueEncoder
for the object type. The value of the label property is used as user-presentable label for the option.
create
in interface SelectModelFactory
objects
- objects to create model fromlabelProperty
- property for the client-side value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |