net.coderazzi.filters
Class UserFilter

java.lang.Object
  extended by javax.swing.RowFilter
      extended by net.coderazzi.filters.BaseFilter
          extended by net.coderazzi.filters.UserFilter
All Implemented Interfaces:
IFilter

public abstract class UserFilter
extends BaseFilter

Commodity class to implement a custom user filter.

Author:
Luis M Pena - lu@coderazzi.net

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.RowFilter
RowFilter.ComparisonType, RowFilter.Entry<M,I>
 
Field Summary
 
Fields inherited from class net.coderazzi.filters.BaseFilter
filterObservers
 
Constructor Summary
UserFilter(TableFilter filter)
          A UserFilter is expected to be associated to a TableFilter
UserFilter(TableFilterHeader filterHeader)
          A UserFilter is expected to be associated to a TableFilter
 
Method Summary
 void setEnabled(boolean enable)
          Enables/disables the current filter
 void setTableFilter(TableFilter filter)
          Sets the associated filter, enabling automatically this user filter
 void setTableFilter(TableFilterHeader filterHeader)
          Sets the associated filter, enabling automatically this user filter
 
Methods inherited from class net.coderazzi.filters.BaseFilter
addFilterObserver, detach, getFilterObservers, removeFilterObserver, reportFilterUpdatedToObservers
 
Methods inherited from class javax.swing.RowFilter
andFilter, dateFilter, include, notFilter, numberFilter, orFilter, regexFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.coderazzi.filters.IFilter
include
 

Constructor Detail

UserFilter

public UserFilter(TableFilterHeader filterHeader)
A UserFilter is expected to be associated to a TableFilter


UserFilter

public UserFilter(TableFilter filter)
A UserFilter is expected to be associated to a TableFilter

Method Detail

setTableFilter

public void setTableFilter(TableFilter filter)
Sets the associated filter, enabling automatically this user filter


setTableFilter

public void setTableFilter(TableFilterHeader filterHeader)
Sets the associated filter, enabling automatically this user filter


setEnabled

public void setEnabled(boolean enable)
Enables/disables the current filter