org.argouml.language.ui
Class ActionNotation
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.language.ui.ActionNotation
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, MenuListener, Serializable
- public class ActionNotation
- extends UMLAction
- implements MenuListener
Allows selection of a default notation.
- Since:
- ARGO0.9.4
- See Also:
- Serialized Form
Constructor Summary |
ActionNotation()
Constructor - adds the Notation menu. |
SINGLETON
private static final ActionNotation SINGLETON
- The instance of this action.
menu
private JMenu menu
- The popup menu with all notations. It gets filled the first time this
action is performed (see
actionPerformed(ActionEvent ae)
).
ActionNotation
public ActionNotation()
- Constructor - adds the Notation menu.
getInstance
public static final ActionNotation getInstance()
- Returns:
- The instance.
actionPerformed
public void actionPerformed(ActionEvent ae)
- Description copied from class:
UMLAction
- Perform the work the action is supposed to do.
This method needs to be overridden by all actions,
since it only shows a fake progressbar...
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class UMLAction
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
getMenu
public JMenu getMenu()
- Returns:
- The menu for the notation.
menuSelected
public void menuSelected(MenuEvent me)
- Specified by:
menuSelected
in interface MenuListener
- See Also:
MenuListener.menuSelected(javax.swing.event.MenuEvent)
menuDeselected
public void menuDeselected(MenuEvent me)
- Specified by:
menuDeselected
in interface MenuListener
- See Also:
MenuListener.menuDeselected(javax.swing.event.MenuEvent)
menuCanceled
public void menuCanceled(MenuEvent me)
- Specified by:
menuCanceled
in interface MenuListener
- See Also:
MenuListener.menuCanceled(javax.swing.event.MenuEvent)