de.jaret.examples.table
Class SampleIntegerAutoFilter

java.lang.Object
  extended by de.jaret.util.misc.PropertyObservableBase
      extended by de.jaret.util.ui.table.filter.AbstractAutoFilter
          extended by de.jaret.examples.table.SampleIntegerAutoFilter
All Implemented Interfaces:
de.jaret.util.misc.PropertyObservable, de.jaret.util.ui.table.filter.IAutoFilter, de.jaret.util.ui.table.filter.IRowFilter, java.util.EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class SampleIntegerAutoFilter
extends de.jaret.util.ui.table.filter.AbstractAutoFilter
implements org.eclipse.swt.events.SelectionListener

Sample auto filter implementation for selecting int values <50, >50.

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

Field Summary
protected  org.eclipse.swt.custom.CCombo _combo
           
protected static java.lang.String FILTER_ALL
           
protected static java.lang.String FILTER_GT50
           
protected static java.lang.String FILTER_LT50
           
 
Fields inherited from class de.jaret.util.ui.table.filter.AbstractAutoFilter
_column, _table
 
Fields inherited from class de.jaret.util.misc.PropertyObservableBase
_propertyChangeSupport
 
Constructor Summary
SampleIntegerAutoFilter()
           
 
Method Summary
 void dispose()
           
 org.eclipse.swt.widgets.Control getControl()
           
 boolean isInResult(de.jaret.util.ui.table.model.IRow row)
           
 void reset()
          
 void update()
           
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
           
 
Methods inherited from class de.jaret.util.ui.table.filter.AbstractAutoFilter
getColFilterStrings, setColumn, setTable
 
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.misc.PropertyObservable
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

_combo

protected org.eclipse.swt.custom.CCombo _combo

FILTER_ALL

protected static java.lang.String FILTER_ALL

FILTER_LT50

protected static java.lang.String FILTER_LT50

FILTER_GT50

protected static java.lang.String FILTER_GT50
Constructor Detail

SampleIntegerAutoFilter

public SampleIntegerAutoFilter()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface de.jaret.util.ui.table.filter.IAutoFilter

getControl

public org.eclipse.swt.widgets.Control getControl()
Specified by:
getControl in interface de.jaret.util.ui.table.filter.IAutoFilter

isInResult

public boolean isInResult(de.jaret.util.ui.table.model.IRow row)
Specified by:
isInResult in interface de.jaret.util.ui.table.filter.IRowFilter

update

public void update()
Specified by:
update in interface de.jaret.util.ui.table.filter.IAutoFilter

reset

public void reset()

Specified by:
reset in interface de.jaret.util.ui.table.filter.IAutoFilter

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener


Copyright © 2012. All Rights Reserved.