de.jaret.util.ui.table.filter
Class AbstractAutoFilter

java.lang.Object
  extended by de.jaret.util.misc.PropertyObservableBase
      extended by de.jaret.util.ui.table.filter.AbstractAutoFilter
All Implemented Interfaces:
de.jaret.util.misc.PropertyObservable, IAutoFilter, IRowFilter
Direct Known Subclasses:
DefaultAutoFilter

public abstract class AbstractAutoFilter
extends de.jaret.util.misc.PropertyObservableBase
implements IAutoFilter

An abstract base that can be used when implementing autofilters.

Version:
$Id: AbstractAutoFilter.java 385 2007-04-29 20:31:49Z olk $
Author:
kliem

Field Summary
protected  IColumn _column
          column of the autofilter.
protected  JaretTable _table
          table of the autofilter.
 
Fields inherited from class de.jaret.util.misc.PropertyObservableBase
_propertyChangeSupport
 
Constructor Summary
AbstractAutoFilter()
           
 
Method Summary
protected  java.util.Set<java.lang.String> getColFilterStrings(IColumn col, int maxLength)
          Get all possible filter strings for the autofilter comboboxes.
 void setColumn(IColumn column)
          Tell the autofilter on which column it works.
 void setTable(JaretTable table)
          Tell the autofilter which table he serves.
 
Methods inherited from class de.jaret.util.misc.PropertyObservableBase
addPropertyChangeListener, firePropertyChange, isRealModification, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.jaret.util.ui.table.filter.IAutoFilter
dispose, getControl, reset, update
 
Methods inherited from interface de.jaret.util.ui.table.filter.IRowFilter
isInResult
 
Methods inherited from interface de.jaret.util.misc.PropertyObservable
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

_table

protected JaretTable _table
table of the autofilter.


_column

protected IColumn _column
column of the autofilter.

Constructor Detail

AbstractAutoFilter

public AbstractAutoFilter()
Method Detail

setColumn

public void setColumn(IColumn column)
Tell the autofilter on which column it works. This method will be called once after the filter has been instantiated.

Specified by:
setColumn in interface IAutoFilter
Parameters:
column - column for the autofilter

setTable

public void setTable(JaretTable table)
Tell the autofilter which table he serves. This will be called after instantiating the autofilter.

Specified by:
setTable in interface IAutoFilter
Parameters:
table - table the autofilter is used with

getColFilterStrings

protected java.util.Set<java.lang.String> getColFilterStrings(IColumn col,
                                                              int maxLength)
Get all possible filter strings for the autofilter comboboxes.

Parameters:
col - the column to look at
maxLength - the maxmium length of the individual strings. If a string is larger than that it wil be truncated, -1 for no truncation
Returns:
set of strings, shortened if necessary


Copyright © 2012. All Rights Reserved.