org.argouml.uml.ui
Class AbstractActionNavigate
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.ui.AbstractActionNavigate
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Direct Known Subclasses:
- ActionNavigateAssociation, ActionNavigateContainerElement, ActionNavigateContext, ActionNavigateNamespace, ActionNavigateOppositeAssocEnd, ActionNavigateOwner, ActionNavigateTransition, ActionNavigateUpFromDiagram
- public abstract class AbstractActionNavigate
- extends UMLAction
- See Also:
- Serialized Form
AbstractActionNavigate
public AbstractActionNavigate()
- The constructor.
AbstractActionNavigate
public AbstractActionNavigate(String name,
boolean hasIcon)
- Parameters:
name
- the name of the actionhasIcon
- 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
- Overrides:
isEnabled
in class UMLAction
- See Also:
Action.isEnabled()
actionPerformed
public void actionPerformed(ActionEvent e)
- Perform the work the action is supposed to do.
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class UMLAction
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)