de.jaret.util.ui.table.filter
Interface IAutoFilter

All Superinterfaces:
IRowFilter, de.jaret.util.misc.PropertyObservable
All Known Implementing Classes:
AbstractAutoFilter, DefaultAutoFilter

public interface IAutoFilter
extends IRowFilter

Interface describing an autofilter to be used within a jaret table. An autofilter will be instantiated for every column it is used on. So it is absolutely necessary that an autofilter can be instantiated by a default constructor.

Version:
$Id: IAutoFilter.java 389 2007-04-30 14:06:51Z olk $
Author:
kliem

Method Summary
 void dispose()
          Dispose all resources.
 org.eclipse.swt.widgets.Control getControl()
          Get the control representing the autofilter (most probably a combo box).
 void reset()
          Remove any selection (usually revert to a setting that filters nothing).
 void setColumn(IColumn column)
          Tell the autofilter on which column it works.
 void setTable(JaretTable table)
          Tell the autofilter which table he serves.
 void update()
          Update/create the control and internal state.
 
Methods inherited from interface de.jaret.util.ui.table.filter.IRowFilter
isInResult
 
Methods inherited from interface de.jaret.util.misc.PropertyObservable
addPropertyChangeListener, removePropertyChangeListener
 

Method Detail

setTable

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

Parameters:
table - table the autofilter is used with

setColumn

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

Parameters:
column - column for the autofilter

getControl

org.eclipse.swt.widgets.Control getControl()
Get the control representing the autofilter (most probably a combo box).

Returns:
configured control representing the filter

update

void update()
Update/create the control and internal state.


reset

void reset()
Remove any selection (usually revert to a setting that filters nothing).


dispose

void dispose()
Dispose all resources.



Copyright © 2012. All Rights Reserved.