|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.misc.PropertyObservableBase
de.jaret.util.ui.table.filter.AbstractAutoFilter
de.jaret.util.ui.table.filter.DefaultAutoFilter
public class DefaultAutoFilter
Default implementation of the IAutofilter interface rendering a combobox with a simple selection mechanism.
| Field Summary | |
|---|---|
protected org.eclipse.swt.custom.CCombo |
_combo
control used for the filter -> coombobox. |
protected static java.lang.String |
TEXT_FILTER_ALL
text: to be externalized. |
protected static java.lang.String |
TEXT_FILTER_EMPTY
text: to be externalized. |
protected static java.lang.String |
TEXT_FILTER_NONEMPTY
text: to be externalized. |
| 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 | |
|---|---|
DefaultAutoFilter()
|
|
| Method Summary | |
|---|---|
void |
dispose()
Dispose all resources. |
org.eclipse.swt.widgets.Control |
getControl()
Get the control representing the autofilter (most probably a combo box). |
boolean |
isInResult(IRow row)
Check whether the row is in the resulting list of rows. |
void |
reset()
Remove any selection (usually revert to a setting that filters nothing). |
void |
update()
Update/create the control and internal state. |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Inform everyone the filter changed. |
| 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.ui.table.filter.IAutoFilter |
|---|
setColumn, setTable |
| Methods inherited from interface de.jaret.util.misc.PropertyObservable |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected static final java.lang.String TEXT_FILTER_ALL
protected static final java.lang.String TEXT_FILTER_EMPTY
protected static final java.lang.String TEXT_FILTER_NONEMPTY
protected org.eclipse.swt.custom.CCombo _combo
| Constructor Detail |
|---|
public DefaultAutoFilter()
| Method Detail |
|---|
public void dispose()
dispose in interface IAutoFilterpublic org.eclipse.swt.widgets.Control getControl()
getControl in interface IAutoFilterpublic boolean isInResult(IRow row)
isInResult in interface IRowFilterrow - row to check.
public void update()
update in interface IAutoFilterpublic void reset()
reset in interface IAutoFilterpublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerpublic void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
widgetSelected in interface org.eclipse.swt.events.SelectionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||