org.argouml.uml.diagram.ui
Class ActionAddAllClassesFromModel

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.argouml.uml.ui.UMLAction
              |
              +--org.argouml.uml.diagram.ui.ActionAddAllClassesFromModel
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ActionAddAllClassesFromModel
extends UMLAction

ActionAddAllClassesFromModel enables pasting of an existing node into a Diagram.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object _object
           
protected  java.lang.String _tabName
           
 
Fields inherited from class org.argouml.uml.ui.UMLAction
cat, HAS_ICON, NO_ICON
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionAddAllClassesFromModel(java.lang.String tabName)
          Constructor
ActionAddAllClassesFromModel(java.lang.String tabName, java.lang.Object o)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          actionPerformed Finds all of the classes within the same namespace as the UMLClassDiagram that was given to me in my constructor and adds them to the UMLClassDiagram.
 boolean shouldBeEnabled()
          shouldBeEnabled Returns true if this popup menu item should be enabled, false if it should be grayed out.
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getShortcut, getValue, isEnabled, markNeedsSave, putValue, stripJunk, updateEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tabName

protected java.lang.String _tabName

_object

protected java.lang.Object _object
Constructor Detail

ActionAddAllClassesFromModel

public ActionAddAllClassesFromModel(java.lang.String tabName)
Constructor


ActionAddAllClassesFromModel

public ActionAddAllClassesFromModel(java.lang.String tabName,
                                    java.lang.Object o)
Constructor

Method Detail

shouldBeEnabled

public boolean shouldBeEnabled()
shouldBeEnabled Returns true if this popup menu item should be enabled, false if it should be grayed out.

Overrides:
shouldBeEnabled in class UMLAction
Returns:
true if the action should be available.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed Finds all of the classes within the same namespace as the UMLClassDiagram that was given to me in my constructor and adds them to the UMLClassDiagram.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class UMLAction
Parameters:
ae - - the ActionEvent


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook