com.moneydance.util
Class BasePropertyChangeReporter

java.lang.Object
  extended by com.moneydance.util.BasePropertyChangeReporter
Direct Known Subclasses:
MemorizedItemManager

public class BasePropertyChangeReporter
extends java.lang.Object

Class to provide simple property change reporter support.

Author:
Kevin Menningen

Field Summary
protected  javax.swing.event.SwingPropertyChangeSupport _eventNotify
          The encapsulated notification object.
static java.lang.String ALL_PROPERTIES
           
 
Constructor Summary
BasePropertyChangeReporter()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a PropertyChangeListener to the listener list.
 void notifyAllListeners()
          Send a generic property change notification to all listeners.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Remove a PropertyChangeListener from the listener list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_PROPERTIES

public static final java.lang.String ALL_PROPERTIES
See Also:
Constant Field Values

_eventNotify

protected final javax.swing.event.SwingPropertyChangeSupport _eventNotify
The encapsulated notification object.

Constructor Detail

BasePropertyChangeReporter

public BasePropertyChangeReporter()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties. The same listener object may be added more than once, and will be called as many times as it is added. If listener is null, no exception is thrown and no action is taken.

Parameters:
listener - The PropertyChangeListener to be added

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties. If listener was added more than once to the same event source, it will be notified one less time after being removed. If listener is null, or was never added, no exception is thrown and no action is taken.

Parameters:
listener - The PropertyChangeListener to be removed

notifyAllListeners

public void notifyAllListeners()
Send a generic property change notification to all listeners.