com.sencha.gxt.data.shared.loader
Class FilterHandler<T>

java.lang.Object
  extended by com.sencha.gxt.data.shared.loader.FilterHandler<T>
Type Parameters:
T - the type of the filter value
Direct Known Subclasses:
BooleanFilterHandler, DateFilterHandler, NumberFilterHandler, StringFilterHandler

public abstract class FilterHandler<T>
extends Object

Abstract base class for all filter handlers. It provides methods to convert filter values between native and string representations.


Constructor Summary
FilterHandler()
           
 
Method Summary
abstract  T convertToObject(String value)
          Converts a filter value in string representation to native representation.
abstract  String convertToString(T object)
          Converts a filter value in native representation to string representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterHandler

public FilterHandler()
Method Detail

convertToObject

public abstract T convertToObject(String value)
Converts a filter value in string representation to native representation.

Parameters:
value - the string representation of the filter value
Returns:
the native representation of the filter value

convertToString

public abstract String convertToString(T object)
Converts a filter value in native representation to string representation.

Parameters:
object - the native representation of the filter value
Returns:
the string representation of the filter value


Copyright © 2012. All Rights Reserved.