com.sencha.gxt.data.shared.loader
Class NumberFilterHandler<V extends java.lang.Number>

java.lang.Object
  extended by com.sencha.gxt.data.shared.loader.FilterHandler<V>
      extended by com.sencha.gxt.data.shared.loader.NumberFilterHandler<V>

public class NumberFilterHandler<V extends java.lang.Number>
extends FilterHandler<V>

A FilterHandler that provides support for Number values and uses a property editor to convert a string representation to a number.


Constructor Summary
NumberFilterHandler(Parser<V> propertyEditor)
          Creates a number filter handler that uses the given property editor to convert a string representation to a number.
 
Method Summary
 V convertToObject(java.lang.String value)
          Converts a filter value in string representation to native representation.
 java.lang.String convertToString(V 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

NumberFilterHandler

public NumberFilterHandler(Parser<V> propertyEditor)
Creates a number filter handler that uses the given property editor to convert a string representation to a number.

Parameters:
propertyEditor - the property editor to use to do the conversion
Method Detail

convertToObject

public V convertToObject(java.lang.String value)
Description copied from class: FilterHandler
Converts a filter value in string representation to native representation.

Specified by:
convertToObject in class FilterHandler<V extends java.lang.Number>
Parameters:
value - the string representation of the filter value
Returns:
the native representation of the filter value

convertToString

public java.lang.String convertToString(V object)
Description copied from class: FilterHandler
Converts a filter value in native representation to string representation.

Specified by:
convertToString in class FilterHandler<V extends java.lang.Number>
Parameters:
object - the native representation of the filter value
Returns:
the string representation of the filter value


Copyright © 2012. All Rights Reserved.