Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.services
Interface SelectModelFactory

All Known Implementing Classes:
  SelectModelFactoryImpl

    public interface SelectModelFactory

Used to create an `SelectModel`.

Since:
  5.2.0

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.

Method Detail

### create

    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. 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.

  Parameters:
    `objects` - objects to create model from
    `labelProperty` - property for the client-side value
  Returns:
    the model

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.