public abstract class BaseListFilter extends java.lang.Object implements ListFilter
Constructor and Description |
---|
BaseListFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
filter(java.lang.Object object,
java.lang.String field,
java.lang.String criteria)
$Invoked on each object in the complete list of data beans
|
java.util.List |
getFieldNames()
$Returns the list of data bean field names the filter can filter on
It is the responsibility of the class implementing this interface to
provide any localization
|
void |
postFilter(java.util.List filteredList)
Invoked after the list of filtered objects has been built and before
the list is returned from ListFilterHelper.
|
void |
prepare(java.util.Locale userLocale)
$Called before any other methods are called
|
abstract void |
processMap(java.util.Map map,
java.util.Locale userLocale)
Bind the display value of UI column(s) that need to be
filtered to bean property of the object that needs to be
inspected...
|
public void prepare(java.util.Locale userLocale)
prepare
in interface ListFilter
userLocale
- locale of the requesting userpublic boolean filter(java.lang.Object object, java.lang.String field, java.lang.String criteria)
filter
in interface ListFilter
object
- Individual data beansfield
- field name to inspectcriteria
- filter criteriapublic java.util.List getFieldNames()
getFieldNames
in interface ListFilter
public abstract void processMap(java.util.Map map, java.util.Locale userLocale)
map
- the map to which the display value is to be
bound to the bean propertyuserLocale
- the locale info used for the display valuepublic void postFilter(java.util.List filteredList)
ListFilter
postFilter
in interface ListFilter
filteredList
- The filtered list