org.argouml.model
Class AbstractModelEventPump

java.lang.Object
  extended byorg.argouml.model.AbstractModelEventPump

public abstract class AbstractModelEventPump
extends Object

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


Constructor Summary
AbstractModelEventPump()
           
 
Method Summary
 void addClassModelEventListener(PropertyChangeListener listener, Object modelClass, String eventName)
           
abstract  void addClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] eventNames)
           
abstract  void addModelEventListener(PropertyChangeListener listener, Object modelelement)
           
 void addModelEventListener(PropertyChangeListener listener, Object modelelement, String eventName)
           
abstract  void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] eventNames)
           
 void enableSaveAction()
          Deprecated. The save Action is no longer required by the model subsystem
 void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String eventName)
           
abstract  void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] eventNames)
           
abstract  void removeModelEventListener(PropertyChangeListener listener, Object modelelement)
           
 void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String eventName)
           
abstract  void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] eventNames)
           
 void setSaveAction(Action theSaveAction)
          Deprecated. 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
 

Constructor Detail

AbstractModelEventPump

public AbstractModelEventPump()
Method Detail

addModelEventListener

public abstract void addModelEventListener(PropertyChangeListener listener,
                                           Object modelelement,
                                           String[] eventNames)
Parameters:
listener - The listener to add.
modelelement - The model element to listen to.
eventNames - The names of the events to listen to.
See Also:
ModelEventPump.addModelEventListener( java.beans.PropertyChangeListener, java.lang.Object, java.lang.String[])

addModelEventListener

public void addModelEventListener(PropertyChangeListener listener,
                                  Object modelelement,
                                  String eventName)
Parameters:
listener - The listener to add.
modelelement - The model element to listen to.
eventName - The name of the event to listen to.
See Also:
ModelEventPump.addModelEventListener( java.beans.PropertyChangeListener, java.lang.Object, java.lang.String)

addModelEventListener

public abstract void addModelEventListener(PropertyChangeListener listener,
                                           Object modelelement)
Parameters:
listener - The listener to add.
modelelement - The model element to listen to.
See Also:
ModelEventPump.addModelEventListener( java.beans.PropertyChangeListener, java.lang.Object)

removeModelEventListener

public abstract void removeModelEventListener(PropertyChangeListener listener,
                                              Object modelelement,
                                              String[] eventNames)
Parameters:
listener - The listener to remove.
modelelement - The model element to stop listening to.
eventNames - The names of the events to stop listening to.
See Also:
ModelEventPump.removeModelEventListener( java.beans.PropertyChangeListener, java.lang.Object, java.lang.String[])

removeModelEventListener

public void removeModelEventListener(PropertyChangeListener listener,
                                     Object modelelement,
                                     String eventName)
Parameters:
listener - The listener to remove.
modelelement - The model element to stop listening to.
eventName - The name of the event to stop listening to.
See Also:
ModelEventPump.removeModelEventListener( java.beans.PropertyChangeListener, java.lang.Object, java.lang.String)

removeModelEventListener

public abstract void removeModelEventListener(PropertyChangeListener listener,
                                              Object modelelement)
Parameters:
listener - The listener to remove.
modelelement - The model element to stop listening to.
See Also:
ModelEventPump.removeModelEventListener( java.beans.PropertyChangeListener, java.lang.Object)

addClassModelEventListener

public abstract void addClassModelEventListener(PropertyChangeListener listener,
                                                Object modelClass,
                                                String[] eventNames)
Parameters:
listener - The listener to add.
modelClass - The model class to listen to.
eventNames - The names of the events to listen to.
See Also:
ModelEventPump.addClassModelEventListener( java.beans.PropertyChangeListener, java.lang.Object, java.lang.String[])

addClassModelEventListener

public void addClassModelEventListener(PropertyChangeListener listener,
                                       Object modelClass,
                                       String eventName)
Parameters:
listener - The listener to add.
modelClass - The model class to listen to.
eventName - The name of the event to listen to.
See Also:
ModelEventPump.addClassModelEventListener( java.beans.PropertyChangeListener, java.lang.Object, java.lang.String)

removeClassModelEventListener

public abstract void removeClassModelEventListener(PropertyChangeListener listener,
                                                   Object modelClass,
                                                   String[] eventNames)
Parameters:
listener - The listener to remove.
modelClass - The model class to stop listening to.
eventNames - The names of the events to stop listening to.
See Also:
ModelEventPump.removeClassModelEventListener( java.beans.PropertyChangeListener, java.lang.Object, java.lang.String[])

removeClassModelEventListener

public void removeClassModelEventListener(PropertyChangeListener listener,
                                          Object modelClass,
                                          String eventName)
Parameters:
listener - The listener to remove.
modelClass - The model class to stop listening to.
eventName - The name of the event to stop listening to.
See Also:
ModelEventPump.removeClassModelEventListener( java.beans.PropertyChangeListener, java.lang.Object, java.lang.String)

setSaveAction

public void setSaveAction(Action theSaveAction)
Deprecated. 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.

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

enableSaveAction

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

Enable the save action.



ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook