|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jbudget.gui.FilterChangeDispatcher
public class FilterChangeDispatcher
A singleton class that is used to deliver updates to all registered components when a new TransactionFilter is selected.
| Field Summary | |
|---|---|
private static FilterChangeDispatcher |
instance
|
private java.util.List<FilterChangeListener> |
listeners
|
| Constructor Summary | |
|---|---|
private |
FilterChangeDispatcher()
Constructor is private. |
| Method Summary | |
|---|---|
void |
addListener(FilterChangeListener listener)
Register listener. |
void |
filterUpdated(org.jbudget.Core.TransactionFilter newFilter,
java.lang.Object initiator)
Transmits the new filter information to all registered listeners. |
static FilterChangeDispatcher |
getInstance()
Get an instance of the FilterChangeDispatcer class. |
void |
removeListener(FilterChangeListener listener)
Removes a listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.List<FilterChangeListener> listeners
private static final FilterChangeDispatcher instance
| Constructor Detail |
|---|
private FilterChangeDispatcher()
| Method Detail |
|---|
public static FilterChangeDispatcher getInstance()
public void addListener(FilterChangeListener listener)
public void removeListener(FilterChangeListener listener)
public void filterUpdated(org.jbudget.Core.TransactionFilter newFilter,
java.lang.Object initiator)
filterUpdated in interface FilterChangeListenernewFilter - the new filter object.initiator - reference to the object that initiated the change.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||