org.chenillekit.tapestry.core.encoders
Class GenericValueEncoder<T>

java.lang.Object
  extended by org.chenillekit.tapestry.core.encoders.GenericValueEncoder<T>
All Implemented Interfaces:
ValueEncoder<T>

public class GenericValueEncoder<T>
extends Object
implements ValueEncoder<T>

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

Constructor Summary
GenericValueEncoder(List<T> objectList)
           
GenericValueEncoder(List<T> objectList, String valueFieldName, PropertyAccess propertyAccess)
           
 
Method Summary
 String toClient(T serverValue)
           
 T toValue(String clientValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericValueEncoder

public GenericValueEncoder(List<T> objectList)

GenericValueEncoder

public GenericValueEncoder(List<T> objectList,
                           String valueFieldName,
                           PropertyAccess propertyAccess)
Method Detail

toClient

public String toClient(T serverValue)
Specified by:
toClient in interface ValueEncoder<T>

toValue

public T toValue(String clientValue)
Specified by:
toValue in interface ValueEncoder<T>


Copyright © 2008-2010 ChenilleKit. All Rights Reserved.