public class NumericFilter<M,V extends Number> extends Filter<M,V>
| Modifier and Type | Class and Description |
|---|---|
class |
NumericFilter.DefaultNumericFilterMessages |
static interface |
NumericFilter.NumericFilterMessages |
| Constructor and Description |
|---|
NumericFilter(ValueProvider<M,V> valueProvider,
NumberPropertyEditor<V> propertyEditor) |
| Modifier and Type | Method and Description |
|---|---|
List<FilterConfig> |
getFilterConfig() |
NumericFilter.NumericFilterMessages |
getMessages() |
Object |
getValue()
Template method to be implemented by all subclasses that is to get and
return the value of the filter.
|
int |
getWidth() |
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 field width (defaults to 125).
|
addActivateHandler, addDeactivateHandler, addUpdateHandler, getHandler, getMenu, getUpdateBuffer, getValueProvider, isActive, setActive, setHandler, setUpdateBufferpublic NumericFilter(ValueProvider<M,V> valueProvider, NumberPropertyEditor<V> propertyEditor)
public boolean isActivatable()
Filtertrue if the filter has enough configuration information to be
activated.public List<FilterConfig> getFilterConfig()
getFilterConfig in class Filter<M,V extends Number>public NumericFilter.NumericFilterMessages getMessages()
public Object getValue()
Filterpublic int getWidth()
public void setMessages(NumericFilter.NumericFilterMessages messages)
public void setWidth(int width)
width - the field widthCopyright © 2012. All Rights Reserved.