M
- the model typepublic class StringFilter<M> extends Filter<M,String>
Filter
for more information.Modifier and Type | Class and Description |
---|---|
class |
StringFilter.DefaultStringFilterMessages
The default locale-sensitive messages used by this class.
|
static interface |
StringFilter.StringFilterMessages
The locale-sensitive messages used by this class.
|
Constructor and Description |
---|
StringFilter(ValueProvider<? super M,String> valueProvider)
Creates a string filter for the specified value provider.
|
Modifier and Type | Method and Description |
---|---|
List<FilterConfig> |
getFilterConfig()
Returns a list of filter configurations.
|
StringFilter.StringFilterMessages |
getMessages()
Returns the locale-sensitive messages used by this class.
|
protected Class<String> |
getType() |
Object |
getValue()
Template method to be implemented by all subclasses that is to get and return the value of the filter.
|
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. |
protected void |
onFieldKeyUp(Event event) |
void |
setFilterConfig(List<FilterConfig> configs)
Sets the filters values using the given filter configs.
|
void |
setMessages(StringFilter.StringFilterMessages messages)
Sets the local-sensitive messages used by this class.
|
void |
setValue(String value)
Sets the value of this filter.
|
protected boolean |
validateModel(M model)
Template method to be implemented by all subclasses that is to validates the provided Model against the filters
configuration.
|
addActivateHandler, addDeactivateHandler, addUpdateHandler, createNewFilterConfig, fireUpdate, getHandler, getMenu, getUpdateBuffer, getValueProvider, isActive, setActive, setHandler, setUpdateBuffer
protected TextField field
public StringFilter(ValueProvider<? super M,String> valueProvider)
Filter.Filter(ValueProvider)
for more
information.valueProvider
- the value providerpublic List<FilterConfig> getFilterConfig()
Filter
getFilterConfig
in class Filter<M,String>
public StringFilter.StringFilterMessages getMessages()
public Object getValue()
Filter
public boolean isActivatable()
Filter
true
if the filter has enough
configuration information to be activated.isActivatable
in class Filter<M,String>
public void setMessages(StringFilter.StringFilterMessages messages)
messages
- the locale sensitive messages used by this class.public void setValue(String value)
Filter.setActive(boolean, boolean)
must be
called when setting filter value programmatically.value
- the valueprotected void onFieldKeyUp(Event event)
protected boolean validateModel(M model)
Filter
validateModel
in class Filter<M,String>
model
- the modelpublic void setFilterConfig(List<FilterConfig> configs)
Filter
setFilterConfig
in class Filter<M,String>
configs
- the list of filter configurationsCopyright © 2018. All rights reserved.