org.argouml.uml.diagram.ui
Class ActionModifierAbstract
java.lang.Object
javax.swing.AbstractAction
org.tigris.gef.undo.UndoableAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.diagram.ui.AbstractActionCheckBoxMenuItem
org.argouml.uml.diagram.ui.ActionModifierAbstract
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- class ActionModifierAbstract
- extends AbstractActionCheckBoxMenuItem
|
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)
This action is performed on ALL targets. |
(package private) boolean |
valueOfTarget(Object t)
This action should be enabled when:
all targets are modelelements that support
the "abstract" checkmark and
all targets are either abstract or not
(mixed is not yet supported, but could be if a tri-state
checkmark is implemented)
|
ActionModifierAbstract
public ActionModifierAbstract(Object o)
- The constructor.
- Parameters:
o - the target
toggleValueOfTarget
void toggleValueOfTarget(Object t)
- This action is performed on ALL targets.
- 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)
- This action should be enabled when:
- all targets are modelelements that support
the "abstract" checkmark and
- all targets are either abstract or not
(mixed is not yet supported, but could be if a tri-state
checkmark is implemented)
- 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:
- 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).
- 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)