org.argouml.uml.diagram.ui
Class ActionNavigateUpFromDiagram

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.uml.ui.UMLAction
          extended byorg.argouml.uml.ui.AbstractActionNavigate
              extended byorg.argouml.uml.diagram.ui.ActionNavigateUpFromDiagram
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

class ActionNavigateUpFromDiagram
extends AbstractActionNavigate


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
Fields inherited from class org.argouml.uml.ui.UMLAction
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
ActionNavigateUpFromDiagram()
          The constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Perform the work the action is supposed to do.
 boolean isEnabled()
           
protected  Object navigateTo(Object source)
          Abstract method to do the navigation.
 
Methods inherited from class org.argouml.uml.ui.AbstractActionNavigate
setIcon
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getValue, putValue, shouldBeEnabled, 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
 

Constructor Detail

ActionNavigateUpFromDiagram

public ActionNavigateUpFromDiagram()
The constructor.

Method Detail

navigateTo

protected Object navigateTo(Object source)
Description copied from class: AbstractActionNavigate
Abstract method to do the navigation. The actual navigation is performed by actionPerformed.

Specified by:
navigateTo in class AbstractActionNavigate
Parameters:
source - the object to navigate from
Returns:
the object to navigate to
See Also:
AbstractActionNavigate.navigateTo(java.lang.Object)

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Action
Overrides:
isEnabled in class AbstractActionNavigate
See Also:
Action.isEnabled()

actionPerformed

public void actionPerformed(ActionEvent e)
Description copied from class: AbstractActionNavigate
Perform the work the action is supposed to do.

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class AbstractActionNavigate
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)


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