org.argouml.uml.ui
Class AbstractActionNavigate
java.lang.Object
javax.swing.AbstractAction
org.tigris.gef.undo.UndoableAction
org.argouml.uml.ui.AbstractActionNavigate
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable, TargetListener
- Direct Known Subclasses:
- ActionNavigateAction, ActionNavigateAssociation, ActionNavigateContainerElement, ActionNavigateContext, ActionNavigateNamespace, ActionNavigateOppositeAssocEnd, ActionNavigateOwner, ActionNavigateTransition, ActionNavigateUpNextDown, ActionNavigateUpPreviousDown
- public abstract class AbstractActionNavigate
- extends org.tigris.gef.undo.UndoableAction
- implements TargetListener
- See Also:
- Serialized Form
AbstractActionNavigate
public AbstractActionNavigate()
- The constructor.
AbstractActionNavigate
public AbstractActionNavigate(String key,
boolean hasIcon)
- Parameters:
key - The key (to be localized) of the name of the action.hasIcon - true if there is an icon for this action
setIcon
public AbstractActionNavigate setIcon(Icon newIcon)
- Parameters:
newIcon - the icon for this action
- Returns:
- this action
navigateTo
protected abstract Object navigateTo(Object source)
- Abstract method to do the navigation. The actual navigation is performed
by actionPerformed.
- Parameters:
source - the object to navigate from
- Returns:
- the object to navigate to
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface Action
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed in interface ActionListener
targetAdded
public void targetAdded(TargetEvent e)
- Description copied from interface:
TargetListener
- Fired when a target is added to the list of targets.
- Specified by:
targetAdded in interface TargetListener
- Parameters:
e - The targetevent, name will be TARGET_ADDED
targetRemoved
public void targetRemoved(TargetEvent e)
- Description copied from interface:
TargetListener
- Fired when a target is removed from the list of targets
- Specified by:
targetRemoved in interface TargetListener
- Parameters:
e - The targetevent, name will be TARGET_REMOVED
targetSet
public void targetSet(TargetEvent e)
- Description copied from interface:
TargetListener
- Fired when a total new set of targets is set
- Specified by:
targetSet in interface TargetListener
- Parameters:
e - The targetevent, name will be TARGET_SET