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.
|
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. |
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.
|
addActivateHandler, addDeactivateHandler, addUpdateHandler, getHandler, getMenu, getUpdateBuffer, getValueProvider, isActive, setActive, setHandler, setUpdateBuffer
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.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 valuepublic void setFilterConfig(List<FilterConfig> configs)
Filter
setFilterConfig
in class Filter<M,String>
configs
- the list of filter configurationsCopyright © 2015. All rights reserved.