org.argouml.uml.ui
Class ActionNavigateUpPreviousDown

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.undo.UndoableAction
          extended byorg.argouml.uml.ui.AbstractActionNavigate
              extended byorg.argouml.uml.ui.ActionNavigateUpPreviousDown
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable, TargetListener

public abstract class ActionNavigateUpPreviousDown
extends AbstractActionNavigate

An action to navigate to the previous in the list, i.e. first we go up, then down again to the previous in the list.

See Also:
Serialized Form

Field Summary
 
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
ActionNavigateUpPreviousDown()
          The constructor.
 
Method Summary
abstract  List getFamily(Object parent)
          Get the list of elements that we are navigating through.
abstract  Object getParent(Object child)
          Get the parent of the list of elements that we are navigating through.
protected  Object navigateTo(Object source)
          Abstract method to do the navigation.
 
Methods inherited from class org.argouml.uml.ui.AbstractActionNavigate
actionPerformed, isEnabled, setIcon, targetAdded, targetRemoved, targetSet
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionNavigateUpPreviousDown

public ActionNavigateUpPreviousDown()
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

getFamily

public abstract List getFamily(Object parent)
Get the list of elements that we are navigating through.

Parameters:
parent - the parent element that owns all elements in the list
Returns:
the list

getParent

public abstract Object getParent(Object child)
Get the parent of the list of elements that we are navigating through.

Parameters:
child - the childelement of which we seek the previous element
Returns:
the parent element


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook