|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.filters.BaseReportFilter
The abstract base class for every ReportFilter. Implements handling of listeners and events.
| Field Summary | |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
BaseReportFilter()
|
|
| Method Summary | |
void |
addFilterChangeListener(FilterChangeListener listener)
This enables to add a listener for the changes of the filter. |
protected FilterChangeEvent |
buildEvent(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Builds a new FilterChangeEvent from the passed in parameters. |
java.lang.Object |
clone()
This method clones this filter adds its listeners to its clone. |
protected boolean |
filtersAreEqual(Filter[] a,
Filter[] b)
Convenience method that tests whether two arrays of filters are equal. |
protected boolean |
filtersAreEqual(Filter a,
Filter b)
Convenience method that tests whether two filters are equal. |
protected void |
fireFilterChangeEvent(FilterChangeEvent evt)
Fires the passed in FilterChangeEvent if there was an actual modification from oldValue to newValue. |
void |
removeFilterChangeListener(FilterChangeListener listener)
This enables to remove a listener for the changes of the filter. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jcreme.filters.Filter |
accept |
| Field Detail |
static final long serialVersionUID
| Constructor Detail |
public BaseReportFilter()
| Method Detail |
public void addFilterChangeListener(FilterChangeListener listener)
addFilterChangeListener in interface ReportFilterlistener - the object that will react to the modifications.protected void fireFilterChangeEvent(FilterChangeEvent evt)
evt - The FilterChangeEvent to be fired.
protected FilterChangeEvent buildEvent(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
propertyName - The property that has changed.oldValue - The previous value associated to the given property.newValue - The new value associated to the given property.
public void removeFilterChangeListener(FilterChangeListener listener)
removeFilterChangeListener in interface ReportFilterlistener - the listener to remove.public java.lang.Object clone()
clone in interface Filter
protected boolean filtersAreEqual(Filter a,
Filter b)
a - The first filter.b - The second filter.
protected boolean filtersAreEqual(Filter[] a,
Filter[] b)
a - The first array of filters.b - The second array of filters.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||