public interface SelectModelFactory
SelectModel
.Modifier and Type | Method and Description |
---|---|
SelectModel |
create(List<?> objects)
Creates a
SelectModel from a list of objects of the same type. |
SelectModel |
create(List<?> objects,
String labelProperty)
Creates a
SelectModel from a list of objects of the same type and a label property name. |
SelectModel create(List<?> objects, 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(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.