org.argouml.uml.ui
Class ActionNavigability
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.argouml.uml.ui.UMLAction
|
+--org.argouml.uml.ui.ActionNavigability
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class ActionNavigability
- extends UMLAction
A class to perform the action of changing the unidirectional or bidirectional navigation
of an association.
- See Also:
- Serialized Form
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(java.lang.String label,
ru.novosoft.uml.foundation.core.MAssociationEnd start,
ru.novosoft.uml.foundation.core.MAssociationEnd end,
int nav)
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent ae)
To perform the action of changing navigability |
static ActionNavigability |
newActionNavigability(ru.novosoft.uml.foundation.core.MAssociationEnd start,
ru.novosoft.uml.foundation.core.MAssociationEnd end,
int nav)
The ActionNavigability constructor. |
boolean |
shouldBeEnabled()
The is action is always enabled |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BIDIRECTIONAL
public static final int BIDIRECTIONAL
STARTTOEND
public static final int STARTTOEND
ENDTOSTART
public static final int ENDTOSTART
ActionNavigability
protected ActionNavigability(java.lang.String label,
ru.novosoft.uml.foundation.core.MAssociationEnd start,
ru.novosoft.uml.foundation.core.MAssociationEnd end,
int nav)
newActionNavigability
public static ActionNavigability newActionNavigability(ru.novosoft.uml.foundation.core.MAssociationEnd start,
ru.novosoft.uml.foundation.core.MAssociationEnd end,
int nav)
- The
ActionNavigability
constructor.
- Parameters:
start
- a MAssociationEnd
object at the start of an association.end
- a MAssociationEnd
object at the end of an association.nav
- the type of navigation required in the association being either
- BIDIRECTIONAL
- STARTTOEND
- ENDTOSTART
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- To perform the action of changing navigability
- Overrides:
actionPerformed
in class UMLAction
shouldBeEnabled
public boolean shouldBeEnabled()
- The is action is always enabled
- Overrides:
shouldBeEnabled
in class UMLAction