com.extjs.gxt.ui.client.data
Class BaseFilterConfig

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.BaseModelData
      extended by com.extjs.gxt.ui.client.data.BaseFilterConfig
All Implemented Interfaces:
FilterConfig, ModelData, java.io.Serializable
Direct Known Subclasses:
BaseBooleanFilterConfig, BaseDateFilterConfig, BaseListFilterConfig, BaseNumericFilterConfig, BaseStringFilterConfig

public abstract class BaseFilterConfig
extends BaseModelData
implements FilterConfig, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.String field
           
 
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModelData
allowNestedValues, map
 
Constructor Summary
BaseFilterConfig()
           
BaseFilterConfig(java.lang.String type, java.lang.Object value)
           
BaseFilterConfig(java.lang.String type, java.lang.String comparison, java.lang.Object value)
           
 
Method Summary
 java.lang.String getComparison()
          Returns the comparison value.
 java.lang.String getField()
          Returns the model property name.
 java.lang.String getType()
           
 java.lang.Object getValue()
          Returns the filter value.
 void setComparison(java.lang.String comparison)
          Sets the comparison value.
 void setField(java.lang.String field)
          Sets the model property name the filter is bound to.
 void setType(java.lang.String type)
          Sets the type of filter ('string', 'numeric', 'date', 'boolean', 'list').
 void setValue(java.lang.Object value)
          Sets the value.
 
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModelData
get, get, getProperties, getPropertyNames, isAllowNestedValues, remove, set, setAllowNestedValues, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.extjs.gxt.ui.client.data.FilterConfig
isFiltered
 

Field Detail

field

protected java.lang.String field
Constructor Detail

BaseFilterConfig

public BaseFilterConfig()

BaseFilterConfig

public BaseFilterConfig(java.lang.String type,
                        java.lang.Object value)

BaseFilterConfig

public BaseFilterConfig(java.lang.String type,
                        java.lang.String comparison,
                        java.lang.Object value)
Method Detail

getComparison

public java.lang.String getComparison()
Description copied from interface: FilterConfig
Returns the comparison value. This value will be set by numeric ('lt', 'gt', 'eq') and date ('after', 'before', 'on') filter types.

Specified by:
getComparison in interface FilterConfig
Returns:
the comparison value

getField

public java.lang.String getField()
Description copied from interface: FilterConfig
Returns the model property name.

Specified by:
getField in interface FilterConfig
Returns:
the property name

getType

public java.lang.String getType()
Specified by:
getType in interface FilterConfig

getValue

public java.lang.Object getValue()
Description copied from interface: FilterConfig
Returns the filter value.

Specified by:
getValue in interface FilterConfig
Returns:
the filter value

setComparison

public void setComparison(java.lang.String comparison)
Description copied from interface: FilterConfig
Sets the comparison value. This value will be set by numeric ('lt', 'gt', 'eq') and date ('after', 'before', 'on') filter types.

Specified by:
setComparison in interface FilterConfig
Parameters:
comparison - the comparison

setField

public void setField(java.lang.String field)
Description copied from interface: FilterConfig
Sets the model property name the filter is bound to.

Specified by:
setField in interface FilterConfig
Parameters:
field - the property name

setType

public void setType(java.lang.String type)
Description copied from interface: FilterConfig
Sets the type of filter ('string', 'numeric', 'date', 'boolean', 'list').

Specified by:
setType in interface FilterConfig
Parameters:
type - the filter type

setValue

public void setValue(java.lang.Object value)
Description copied from interface: FilterConfig
Sets the value. The type of the value will be determined by the type of filter.

Specified by:
setValue in interface FilterConfig
Parameters:
value - the value