Package com.iizix.prop.ui.table
Class DefaultTableFilter
java.lang.Object
com.iizix.prop.ui.table.DefaultTableFilter
- All Implemented Interfaces:
ITableFilter<VSRow,VSField>
The default table filter uses either a string for filtering cells on columns with filtering option defined. The string either connected to a VSField or defined by means of the
UITable.setFilterText(String) and the flags for case sensitive with UITable.setFilterCaseSensitive(boolean) and the operation with UITable.setFilterOperation(ITableFilter.Op).- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.prop.ui.table.ITableFilter
ITableFilter.OpConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionvoiddispose()Called when the content provider is no longer required by the table.voidCalled before filtering process begins to initialize values such as filtering columns, filter text, etc.voidonInitialize(UITable table) Called to initialize the content provider for the UITable instance.voidThis method is called when the table needs re-initialization due to e.g.booleanReturns whether the given row makes it through this filter.
Constructor Details
DefaultTableFilter
public DefaultTableFilter()
Method Details
onInitialize
Called to initialize the content provider for the UITable instance.- Specified by:
onInitializein interfaceITableFilter<VSRow,VSField>
initializeFilter
public void initializeFilter()Called before filtering process begins to initialize values such as filtering columns, filter text, etc.- Specified by:
initializeFilterin interfaceITableFilter<VSRow,VSField>
onReinitialized
public void onReinitialized()This method is called when the table needs re-initialization due to e.g. a change of the VSTable or one of the columns.- Specified by:
onReinitializedin interfaceITableFilter<VSRow,VSField>
dispose
public void dispose()Called when the content provider is no longer required by the table.- Specified by:
disposein interfaceITableFilter<VSRow,VSField>
select
Returns whether the given row makes it through this filter.- Specified by:
selectin interfaceITableFilter<VSRow,VSField> - Parameters:
row- The row.cells- The cells of the row. Note: the array of cells may very well be shorter or longer than the actual number of columns in table.- Returns:
trueif row is included in the filtered set, andfalseif excluded.