|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.widget.core.client.grid.filters.Filter<M,V>
com.sencha.gxt.widget.core.client.grid.filters.NumericFilter<M,V>
M - the model in the store and in each grid rowV - the numeric type in the column to filterpublic class NumericFilter<M,V extends java.lang.Number>
Filter class for numeric fields. by default, converts data to double
before comparing, but this behavior can be change by overriding
equals(Number, Number) and greaterThan(Number, Number). See
Filter for more information.
| Nested Class Summary | |
|---|---|
class |
NumericFilter.DefaultNumericFilterMessages
The default locale-sensitive messages used by this class. |
static interface |
NumericFilter.NumericFilterMessages
The locale-sensitive messages used by this class. |
| Constructor Summary | |
|---|---|
NumericFilter(ValueProvider<? super M,V> valueProvider,
NumberPropertyEditor<V> propertyEditor)
Creates a numeric filter for the specified value provider. |
|
| Method Summary | |
|---|---|
java.util.List<FilterConfig> |
getFilterConfig()
Returns a list of filter configurations. |
NumericFilter.NumericFilterMessages |
getMessages()
Returns the locale-sensitive messages used by this class. |
java.lang.Object |
getValue()
Template method to be implemented by all subclasses that is to get and return the value of the filter. |
int |
getWidth()
Returns the width used for the range sub-menu. |
boolean |
isActivatable()
Template method to be implemented by all subclasses that is to return true if the filter has enough configuration information to be
activated. |
void |
setMessages(NumericFilter.NumericFilterMessages messages)
|
void |
setWidth(int width)
Sets the width to use for the range sub-menu (defaults to 125). |
| Methods inherited from class com.sencha.gxt.widget.core.client.grid.filters.Filter |
|---|
addActivateHandler, addDeactivateHandler, addUpdateHandler, getHandler, getMenu, getUpdateBuffer, getValueProvider, isActive, setActive, setHandler, setUpdateBuffer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumericFilter(ValueProvider<? super M,V> valueProvider,
NumberPropertyEditor<V> propertyEditor)
Filter.Filter(ValueProvider) for more information.
valueProvider - the value providerpropertyEditor - property editor for numeric type <V>| Method Detail |
|---|
public java.util.List<FilterConfig> getFilterConfig()
Filter
getFilterConfig in class Filter<M,V extends java.lang.Number>public NumericFilter.NumericFilterMessages getMessages()
public java.lang.Object getValue()
Filter
getValue in class Filter<M,V extends java.lang.Number>public int getWidth()
public boolean isActivatable()
Filtertrue if the filter has enough configuration information to be
activated.
public void setMessages(NumericFilter.NumericFilterMessages messages)
public void setWidth(int width)
width - the width used for the range sub-menu.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||