org.argouml.uml.ui
Class ActionModifier

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.argouml.uml.ui.UMLAction
              |
              +--org.argouml.uml.ui.ActionModifier
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

Deprecated. as of 0.15.2 replace with ActionModifier, remove 0.15.3, alexb

public class ActionModifier
extends UMLAction

A class to perform the action of changing value of the modifiers on a package, use case, interface or class.

See Also:
Serialized Form

Field Summary
private  UMLBooleanProperty _property
          Deprecated.  
(package private)  java.lang.Object falseValue
          Deprecated.  
(package private)  java.lang.Class mclassClass
          Deprecated.  
(package private)  java.lang.Class minterfaceClass
          Deprecated.  
(package private)  java.lang.Class mpackageClass
          Deprecated.  
(package private)  java.lang.Class museCaseClass
          Deprecated.  
private  java.lang.Object object
          Deprecated.  
(package private)  java.lang.Object trueValue
          Deprecated.  
 
Fields inherited from class org.argouml.uml.ui.UMLAction
cat, 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
ActionModifier(java.lang.String name, java.lang.String propertyName, java.lang.String getMethod, java.lang.String setMethod, java.lang.Object mclass)
          Deprecated. Defines an Action object with the specified description which will use the given reflection methods to modify boolean values in an MClass object.
ActionModifier(java.lang.String name, java.lang.String propertyName, java.lang.String getMethod, java.lang.String setMethod, java.lang.Object mclass, java.lang.Class enumClass, java.lang.Object trueValue, java.lang.Object falseValue)
          Deprecated. Defines an Action object with the specified description which will use the given reflection methods to modify an enumerated values in an MClass object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Deprecated. To perform the action of changing a modifier
 boolean shouldBeEnabled()
          Deprecated. The action is always enabled
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getShortcut, getValue, isEnabled, markNeedsSave, putValue, stripJunk, 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

_property

private UMLBooleanProperty _property
Deprecated. 

object

private java.lang.Object object
Deprecated. 

mclassClass

java.lang.Class mclassClass
Deprecated. 

mpackageClass

java.lang.Class mpackageClass
Deprecated. 

minterfaceClass

java.lang.Class minterfaceClass
Deprecated. 

museCaseClass

java.lang.Class museCaseClass
Deprecated. 

trueValue

java.lang.Object trueValue
Deprecated. 

falseValue

java.lang.Object falseValue
Deprecated. 
Constructor Detail

ActionModifier

public ActionModifier(java.lang.String name,
                      java.lang.String propertyName,
                      java.lang.String getMethod,
                      java.lang.String setMethod,
                      java.lang.Object mclass)
Deprecated. 
Defines an Action object with the specified description which will use the given reflection methods to modify boolean values in an MClass object.

Parameters:
name - the text for the actions menu item
propertyName - the name of the modifier property to be amended
getMethod - the name of the getter method to retrieve the property
setMethod - the name of the setter method to change the property
mclass - the MClass object containing the modifier property.

ActionModifier

public ActionModifier(java.lang.String name,
                      java.lang.String propertyName,
                      java.lang.String getMethod,
                      java.lang.String setMethod,
                      java.lang.Object mclass,
                      java.lang.Class enumClass,
                      java.lang.Object trueValue,
                      java.lang.Object falseValue)
Deprecated. 
Defines an Action object with the specified description which will use the given reflection methods to modify an enumerated values in an MClass object.

Parameters:
name - the text for the actions menu item
propertyName - the name of the modifier property to be amended
getMethod - the name of the getter method to retrieve the property
setMethod - the name of the setter method to change the property
mclass - the MClass object containing the modifier property.
enumClass - the class representing the enumeration
trueValue - The enumerated value representing true
falseValue - The enumerated value representing false
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Deprecated. 
To perform the action of changing a modifier

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class UMLAction

shouldBeEnabled

public boolean shouldBeEnabled()
Deprecated. 
The action is always enabled

Overrides:
shouldBeEnabled in class UMLAction
Returns:
true if the action should be available.


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook