com.swfm.mica.widgets
Class MiVirtualTableRowsFilter

java.lang.Object
  extended bycom.swfm.mica.widgets.MiVirtualTableRowsFilter
All Implemented Interfaces:
MiiVirtualTableFilter

public class MiVirtualTableRowsFilter
extends java.lang.Object
implements MiiVirtualTableFilter

This class supports the 'virtual' table, which is called virtual by virtue of it building only the visible rows of the table at one time - instead of the whole table at once - which scales better and is more efficient, though less flexible.

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
static int CONTAINS
           
static int EQUALS
           
static int STARTS_WITH
           
 
Constructor Summary
MiVirtualTableRowsFilter(int columnNumberOfValuesToFilter)
           
 
Method Summary
 void addExcludeRowsWithThisValue(java.lang.String value)
           
 void addIncludeRowsWithThisValue(java.lang.String value, int compareMethod)
           
 boolean filter(java.util.ArrayList rows)
           
 void removeAllIncludeRowsWithThisValue()
           
 void removeExcludeRowsWithThisValue(java.lang.String value)
           
 void setIgnoreCase(boolean flag)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

STARTS_WITH

public static final int STARTS_WITH
See Also:
Constant Field Values

CONTAINS

public static final int CONTAINS
See Also:
Constant Field Values
Constructor Detail

MiVirtualTableRowsFilter

public MiVirtualTableRowsFilter(int columnNumberOfValuesToFilter)
Method Detail

addIncludeRowsWithThisValue

public void addIncludeRowsWithThisValue(java.lang.String value,
                                        int compareMethod)

removeAllIncludeRowsWithThisValue

public void removeAllIncludeRowsWithThisValue()

addExcludeRowsWithThisValue

public void addExcludeRowsWithThisValue(java.lang.String value)

removeExcludeRowsWithThisValue

public void removeExcludeRowsWithThisValue(java.lang.String value)

setIgnoreCase

public void setIgnoreCase(boolean flag)

filter

public boolean filter(java.util.ArrayList rows)
Specified by:
filter in interface MiiVirtualTableFilter