org.argouml.uml.diagram.ui
Class ActionModifierActive

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.undo.UndoableAction
          extended byorg.argouml.uml.ui.UMLAction
              extended byorg.argouml.uml.diagram.ui.AbstractActionCheckBoxMenuItem
                  extended byorg.argouml.uml.diagram.ui.ActionModifierActive
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

class ActionModifierActive
extends AbstractActionCheckBoxMenuItem


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
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
ActionModifierActive(Object o)
          The constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          This action is performed on ALL targets.
 boolean isEnabled()
          This action should be enabled when: all targets are modelelements that support this checkmark and all targets have the checkmark either on or off (mixed is not yet supported, but could be if a tri-state checkmark is implemented).
(package private)  void toggleValueOfTarget(Object t)
           
(package private)  boolean valueOfTarget(Object t)
           
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getValue, oldActionPerformed, putValue, shouldBeEnabled, 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
 

Constructor Detail

ActionModifierActive

public ActionModifierActive(Object o)
The constructor.

Parameters:
o - the target
Method Detail

toggleValueOfTarget

void toggleValueOfTarget(Object t)
Specified by:
toggleValueOfTarget in class AbstractActionCheckBoxMenuItem
Parameters:
t - the target modelelement
See Also:
org.argouml.uml.diagram.ui.FigNodeModelElement.AbstractActionCheckBoxMenuItem#toggleValueOfTarget(java.lang.Object)

valueOfTarget

boolean valueOfTarget(Object t)
Specified by:
valueOfTarget in class AbstractActionCheckBoxMenuItem
Parameters:
t - the target modelelement
Returns:
the value of the checkmark for this modelelement
See Also:
org.argouml.uml.diagram.ui.FigNodeModelElement.AbstractActionCheckBoxMenuItem#valueOfTarget(java.lang.Object)

isEnabled

public boolean isEnabled()
This action should be enabled when:

Specified by:
isEnabled in interface Action
Overrides:
isEnabled in class UMLAction
See Also:
Action.isEnabled()

actionPerformed

public final void actionPerformed(ActionEvent e)
This action is performed on ALL targets.

See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)


ArgoUML © 1996-2005ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook