public interface SelectModelFactory
SelectModel
.Modifier and Type | Method and Description |
---|---|
SelectModel |
create(java.util.List<?> objects)
Creates a
SelectModel from a list of objects of the same type. |
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. |
SelectModel create(java.util.List<?> objects, java.lang.String labelProperty)
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.objects
- objects to create model fromlabelProperty
- property for the client-side valueSelectModel create(java.util.List<?> objects)
SelectModel
from a list of objects of the same type.
The returned model creates for every object in the list a selectable option and relies on existing
ValueEncoder
for the object type.objects
- objects to create model from${project.version} - Copyright © 2003-2015 The Apache Software Foundation.