| Modifier and Type | Class and Description |
|---|---|
static class |
RowFilter.FilterType
Specifies the criteria used by a Filter.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RowFilter(DialogObjectConstant column,
U filterValue)
Create a new row filter.
|
| Modifier and Type | Method and Description |
|---|---|
static <U extends Comparable<U>,T extends ListRow> |
comparableFilter(DialogObjectConstant column,
U filterValue,
RowFilter.FilterType filterType)
Create a filter that uses a java.lang.Comparable filter value.
|
DialogObjectConstant |
getColumn()
Get the column this filter applies to.
|
U |
getFilterValue()
Get the value used by this filter when checking if a row should be
included.
|
abstract boolean |
passFilter(T row)
Test if the specified row passes this filter.
|
static <T extends ListRow> |
regexpFilter(DialogObjectConstant column,
String regexp)
Create a filter that uses the a regular expression to filter values.
|
void |
setFilterValue(U filterValue)
Set the value used by this filter when checking if a row should be
included.
|
protected RowFilter(DialogObjectConstant column, U filterValue)
column - the column used when filteringfilterValue - the filter valuepublic abstract boolean passFilter(T row)
true if the row is not caught by this filter.row - ListRow to testtrue if the row is accepted by this filterpublic final U getFilterValue()
public void setFilterValue(U filterValue)
filterValue - the filter valuepublic DialogObjectConstant getColumn()
public static <U extends Comparable<U>,T extends ListRow> RowFilter<U,T> comparableFilter(DialogObjectConstant column, U filterValue, RowFilter.FilterType filterType)
null values will never pass this filter.U - the filter type classT - the generated ListRow classcolumn - the column this filter applies tofilterValue - the filter valuefilterType - the type of filterComparable when filteringpublic static <T extends ListRow> RowFilter<String,T> regexpFilter(DialogObjectConstant column, String regexp)
T - the generated ListRow classcolumn - the column this filter applies toregexp - the regular expressionCopyright © 2006–2020 Esito AS. All rights reserved.