public final class SimpleStringFilter extends Object implements Container.Filter
| Constructor and Description |
|---|
SimpleStringFilter(Object propertyId,
String filterString,
boolean ignoreCase,
boolean onlyMatchPrefix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesToProperty(Object propertyId)
Check if a change in the value of a property can affect the filtering
result.
|
boolean |
equals(Object obj) |
String |
getFilterString()
Returns the filter string.
|
Object |
getPropertyId()
Returns the property identifier to which this filter applies.
|
int |
hashCode() |
boolean |
isIgnoreCase()
Returns whether the filter is case-insensitive or case-sensitive.
|
boolean |
isOnlyMatchPrefix()
Returns true if the filter only applies to the beginning of the value
string, false for any location in the value.
|
boolean |
passesFilter(Object itemId,
Item item)
Check if an item passes the filter (in-memory filtering).
|
public boolean passesFilter(Object itemId, Item item)
Container.FilterpassesFilter in interface Container.FilteritemId - identifier of the item being filtered; may be null when
the item is being added to the containeritem - the item being filteredpublic boolean appliesToProperty(Object propertyId)
Container.FilterappliesToProperty in interface Container.Filterpublic Object getPropertyId()
public String getFilterString()
public boolean isIgnoreCase()
public boolean isOnlyMatchPrefix()
Copyright © 2017 Vaadin Ltd. All rights reserved.