|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractAction
org.tigris.gef.undo.UndoableAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.diagram.ui.ActionNavigability
A class to perform the action of changing the unidirectional or bidirectional navigation of an association.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.AbstractAction |
|
| Field Summary | |
private Object |
assocEnd
The association end. |
private Object |
assocStart
The association start. |
static int |
BIDIRECTIONAL
Enumeration constant for BIDIRECTIONAL navigability. |
static int |
ENDTOSTART
Enumeration constant for ENDTOSTART navigability. |
private int |
nav
The actual navigability of this action. |
static int |
STARTTOEND
Enumeration constant for STARTTOEND navigability. |
| 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 | |
protected |
ActionNavigability(String label,
Object theAssociationStart,
Object theAssociationEnd,
int theNavigability)
The constructor. |
| Method Summary | |
void |
actionPerformed(ActionEvent ae)
To perform the action of changing navigability. |
private static String |
getDescription(Object assocStart,
Object assocEnd,
int nav)
Build a description string from the given association ends, and the navigability. |
static ActionNavigability |
newActionNavigability(Object assocStart,
Object assocEnd,
int nav)
The ActionNavigability constructor. |
boolean |
shouldBeEnabled()
The is action is always enabled. |
| Methods inherited from class org.argouml.uml.ui.UMLAction |
getMnemonic, getValue, isEnabled, oldActionPerformed, putValue, 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 |
public static final int BIDIRECTIONAL
BIDIRECTIONAL navigability.
public static final int STARTTOEND
STARTTOEND navigability.
public static final int ENDTOSTART
ENDTOSTART navigability.
private int nav
private Object assocStart
private Object assocEnd
| Constructor Detail |
protected ActionNavigability(String label,
Object theAssociationStart,
Object theAssociationEnd,
int theNavigability)
label - the description as build in getDescriptiontheAssociationStart - association end 1theAssociationEnd - association end 2theNavigability - the navigability: one of
BIDIRECTIONAL, STARTTOEND, ENDTOSTART| Method Detail |
public static ActionNavigability newActionNavigability(Object assocStart,
Object assocEnd,
int nav)
ActionNavigability constructor.
assocStart - a MAssociationEnd object at the start
of an association.assocEnd - a MAssociationEnd object at the end of
an association.nav - the type of navigation required in the association
being either
private static String getDescription(Object assocStart,
Object assocEnd,
int nav)
assocStart - association end 1assocEnd - association end 2nav - the navigability
public void actionPerformed(ActionEvent ae)
ActionListener.actionPerformed(
java.awt.event.ActionEvent)public boolean shouldBeEnabled()
shouldBeEnabled in class UMLActionUMLAction.shouldBeEnabled()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2005 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |