org.chenillekit.tapestry.core.models
Class GenericMultipleSelectModel<T>

java.lang.Object
  extended by org.apache.tapestry5.util.AbstractSelectModel
      extended by org.chenillekit.tapestry.core.models.GenericMultipleSelectModel<T>
All Implemented Interfaces:
SelectModel, MultipleValueEncoder<T>

public class GenericMultipleSelectModel<T>
extends AbstractSelectModel
implements MultipleValueEncoder<T>

Version:
$Id: GenericMultipleSelectModel.java 670 2010-07-19 09:22:02Z mlusetti $

Constructor Summary
GenericMultipleSelectModel(List<T> selectables, Class clasz, String labelPropertyName, String valuePropertyName, PropertyAccess access)
           
 
Method Summary
 List<OptionGroupModel> getOptionGroups()
           
 List<OptionModel> getOptions()
           
 String toClient(T obj)
           
 List<T> toValue(String[] strings)
           
 
Methods inherited from class org.apache.tapestry5.util.AbstractSelectModel
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericMultipleSelectModel

public GenericMultipleSelectModel(List<T> selectables,
                                  Class clasz,
                                  String labelPropertyName,
                                  String valuePropertyName,
                                  PropertyAccess access)
Method Detail

getOptionGroups

public List<OptionGroupModel> getOptionGroups()
Specified by:
getOptionGroups in interface SelectModel

getOptions

public List<OptionModel> getOptions()
Specified by:
getOptions in interface SelectModel

toClient

public String toClient(T obj)
Specified by:
toClient in interface MultipleValueEncoder<T>

toValue

public List<T> toValue(String[] strings)
Specified by:
toValue in interface MultipleValueEncoder<T>


Copyright © 2008-2010 ChenilleKit. All Rights Reserved.