org.argouml.model
Class AbstractModelEventPump

java.lang.Object
  extended byorg.argouml.model.AbstractModelEventPump
All Implemented Interfaces:
ModelEventPump

public abstract class AbstractModelEventPump
extends Object
implements ModelEventPump

Abstract class that implements the convenience methods of the ModelEventPump interface.


Constructor Summary
AbstractModelEventPump()
           
 
Method Summary
 void addClassModelEventListener(PropertyChangeListener listener, Object modelClass, String eventName)
          Adds a listener that listens to the event that is named eventName and that occur to instances of the given modelClass.
abstract  void addClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] eventNames)
          Adds a listener that listens to all events that are named eventNames and that occur to instances of the given modelClass.
abstract  void addModelEventListener(PropertyChangeListener listener, Object modelelement)
          Adds a listener to all events fired by some modelelement.
 void addModelEventListener(PropertyChangeListener listener, Object modelelement, String eventName)
          Adds a listener to modelevents that are fired by some given modelelement and that have the name in eventName.
abstract  void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] eventNames)
          Adds a listener to modelevents that are fired by some given modelelement and that have any of the names in eventNames.
 void enableSaveAction()
          Deprecated. by bobtarling July 2006 - The save Action is no longer required by the model subsystem
 void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String eventName)
          Removes a listener that listens to all modelevents fired by instances of modelClass and that have the name eventName.
abstract  void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] eventNames)
          Removes a listener that listens to all modelevents fired by instances of modelClass and that have the original name eventNames.
abstract  void removeModelEventListener(PropertyChangeListener listener, Object modelelement)
          Removes a listener that listens to all events fired by the given modelelement.
 void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String eventName)
          Removes a listener that listens to modelevents with name eventName that are fired by the given modelelement.
abstract  void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] eventNames)
          Removes a listener that listens to modelevents with name eventNames that are fired by the given modelelement.
 void setSaveAction(Action theSaveAction)
          Deprecated. by bobtarling July 2006 - The save Action is no longer required by the model subsystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.argouml.model.ModelEventPump
flushModelEvents, startPumpingEvents, stopPumpingEvents
 

Constructor Detail

AbstractModelEventPump

public AbstractModelEventPump()
Method Detail

addModelEventListener

public abstract void addModelEventListener(PropertyChangeListener listener,
                                           Object modelelement,
                                           String[] eventNames)
Description copied from interface: ModelEventPump
Adds a listener to modelevents that are fired by some given modelelement and that have any of the names in eventNames.

Specified by:
addModelEventListener in interface ModelEventPump
Parameters:
listener - The listener to add
modelelement - The modelelement the listener should be added too
eventNames - The array of property names the listener wishes to receive events for

addModelEventListener

public void addModelEventListener(PropertyChangeListener listener,
                                  Object modelelement,
                                  String eventName)
Description copied from interface: ModelEventPump
Adds a listener to modelevents that are fired by some given modelelement and that have the name in eventName.

Specified by:
addModelEventListener in interface ModelEventPump
Parameters:
listener - The listener to add
modelelement - The modelelement the listener should be added too
eventName - The property name the listener wishes to receive events for

addModelEventListener

public abstract void addModelEventListener(PropertyChangeListener listener,
                                           Object modelelement)
Description copied from interface: ModelEventPump
Adds a listener to all events fired by some modelelement.

Specified by:
addModelEventListener in interface ModelEventPump
Parameters:
listener - is the listener to add
modelelement - is the model element

removeModelEventListener

public abstract void removeModelEventListener(PropertyChangeListener listener,
                                              Object modelelement,
                                              String[] eventNames)
Description copied from interface: ModelEventPump
Removes a listener that listens to modelevents with name eventNames that are fired by the given modelelement.

Specified by:
removeModelEventListener in interface ModelEventPump
Parameters:
listener - The listener to remove
modelelement - The modelelement that fires the events the listener is listening to.
eventNames - The property names the listener no longer wishes to receive events for

removeModelEventListener

public void removeModelEventListener(PropertyChangeListener listener,
                                     Object modelelement,
                                     String eventName)
Description copied from interface: ModelEventPump
Removes a listener that listens to modelevents with name eventName that are fired by the given modelelement.

Specified by:
removeModelEventListener in interface ModelEventPump
Parameters:
listener - The listener to remove.
modelelement - The modelelement that fires the events the listener is listening to.
eventName - The property name the listener no longer wishes to receive events for

removeModelEventListener

public abstract void removeModelEventListener(PropertyChangeListener listener,
                                              Object modelelement)
Description copied from interface: ModelEventPump
Removes a listener that listens to all events fired by the given modelelement.

Specified by:
removeModelEventListener in interface ModelEventPump
Parameters:
listener - is the listener
modelelement - is the model element

addClassModelEventListener

public abstract void addClassModelEventListener(PropertyChangeListener listener,
                                                Object modelClass,
                                                String[] eventNames)
Description copied from interface: ModelEventPump
Adds a listener that listens to all events that are named eventNames and that occur to instances of the given modelClass.

Specified by:
addClassModelEventListener in interface ModelEventPump
Parameters:
listener - is the listener to add.
modelClass - is the given model class
eventNames - The property names the listener wishes to receive events for. If null or an empty array, all events will be returned.

addClassModelEventListener

public void addClassModelEventListener(PropertyChangeListener listener,
                                       Object modelClass,
                                       String eventName)
Description copied from interface: ModelEventPump
Adds a listener that listens to the event that is named eventName and that occur to instances of the given modelClass.

Specified by:
addClassModelEventListener in interface ModelEventPump
Parameters:
listener - is the listener to add.
modelClass - is the given model class
eventName - The property name the listener wishes to receive events for.

removeClassModelEventListener

public abstract void removeClassModelEventListener(PropertyChangeListener listener,
                                                   Object modelClass,
                                                   String[] eventNames)
Description copied from interface: ModelEventPump
Removes a listener that listens to all modelevents fired by instances of modelClass and that have the original name eventNames.

Specified by:
removeClassModelEventListener in interface ModelEventPump
Parameters:
listener - The listener to remove
modelClass - The class the listener does not want to listen to instances anymore
eventNames - The property names the listener no longer wishes to receive events for

removeClassModelEventListener

public void removeClassModelEventListener(PropertyChangeListener listener,
                                          Object modelClass,
                                          String eventName)
Description copied from interface: ModelEventPump
Removes a listener that listens to all modelevents fired by instances of modelClass and that have the name eventName.

Specified by:
removeClassModelEventListener in interface ModelEventPump
Parameters:
listener - The listener to remove
modelClass - The class the listener does not want to listen to instances anymore.
eventName - The property name the listener no longer wishes to receive events for

setSaveAction

public void setSaveAction(Action theSaveAction)
Deprecated. by bobtarling July 2006 - The save Action is no longer required by the model subsystem

Register an Action with the pump that is used to perform saving. This action will be enabled by any change to the model. The param saveAction is the action to enable on change to model.

Specified by:
setSaveAction in interface ModelEventPump
Parameters:
theSaveAction - The saveAction to set (or null).
See Also:
ModelEventPump.setSaveAction(javax.swing.Action)

enableSaveAction

public void enableSaveAction()
Deprecated. by bobtarling July 2006 - The save Action is no longer required by the model subsystem

Enable the save action.



ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook