org.extremecomponents.table.model
Class FilterHandler

java.lang.Object
  extended byorg.extremecomponents.table.model.FilterHandler

public class FilterHandler
extends java.lang.Object

Deal with the filtering.

Author:
Jeff Johnston

Field Summary
static java.lang.String BUTTON
           
static java.lang.String CLEAR_IMAGE
           
static java.lang.String DO_CLEAR
           
static java.lang.String DO_SEARCH
           
static java.lang.String SEARCH_IMAGE
           
 
Constructor Summary
FilterHandler(TableModel model)
           
 
Method Summary
 void destroy()
           
 boolean doClear()
           
 boolean doFilter()
           
 java.util.List filterRows(TableModel model, java.util.List rows)
          Filter out the table using the Predicate pattern.
 java.lang.String getButton()
           
 java.util.List getFilter(TableModel model)
          Get the Filter
 java.util.Map getFilterDropLists(TableModel model)
          Make up the droplists that will be used for the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DO_CLEAR

public static final java.lang.String DO_CLEAR
See Also:
Constant Field Values

DO_SEARCH

public static final java.lang.String DO_SEARCH
See Also:
Constant Field Values

BUTTON

public static final java.lang.String BUTTON
See Also:
Constant Field Values

SEARCH_IMAGE

public static final java.lang.String SEARCH_IMAGE
See Also:
Constant Field Values

CLEAR_IMAGE

public static final java.lang.String CLEAR_IMAGE
See Also:
Constant Field Values
Constructor Detail

FilterHandler

public FilterHandler(TableModel model)
Method Detail

doFilter

public boolean doFilter()

doClear

public boolean doClear()

getButton

public java.lang.String getButton()

filterRows

public java.util.List filterRows(TableModel model,
                                 java.util.List rows)
Filter out the table using the Predicate pattern.


getFilter

public java.util.List getFilter(TableModel model)
Get the Filter


getFilterDropLists

public java.util.Map getFilterDropLists(TableModel model)
Make up the droplists that will be used for the filter. The droplists will be a distinct set of the data in a column. This could be very painful if the list is long so be careful about using for larger sets. Trying to make this faster by running through bean only once.


destroy

public void destroy()


Copyright © 2004 sourceforge. All Rights Reserved.