br.com.arsmachina.tapestrycrud.selectmodel
Class DefaultSingleTypeSelectModelFactory<T>
java.lang.Object
br.com.arsmachina.tapestrycrud.selectmodel.DefaultSingleTypeSelectModelFactory<T>
- Type Parameters:
T - the type related to this factory.
- All Implemented Interfaces:
- SingleTypeSelectModelFactory<T>
public class DefaultSingleTypeSelectModelFactory<T>
- extends Object
- implements SingleTypeSelectModelFactory<T>
Default SingleTypeSelectModelFactory implementation for entity classes. It uses
Controller#
- Author:
- Thiago H. de Paula Figueiredo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSingleTypeSelectModelFactory
public DefaultSingleTypeSelectModelFactory(br.com.arsmachina.controller.Controller<T,?> controller,
LabelEncoder<T> labelEncoder)
- Single constructor of this class.
- Parameters:
controller - a Controller. It cannot be null.encoder - a LabelEncoder. It cannot be null.
create
public SelectModel create(List<T> objects)
- Description copied from interface:
SingleTypeSelectModelFactory
- Creates a
SelectModel with given options.
- Specified by:
create in interface SingleTypeSelectModelFactory<T>
- Parameters:
objects - a List containing the objects used as options. It it is
null, it means that all instances must be used as options.
- Returns:
- a
SelectModel.
Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.