|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractAction
org.tigris.gef.base.Cmd
org.tigris.gef.base.CmdCreateNode
org.argouml.ui.CmdCreateNode
Command to create nodes with the appropriate modelelement. The modelelement is initialized via the build methods on the uml factories. First we search for a buildMODELELEMENTNAME method without parameters. If that is not found we use the createMODELELEMENTNAME method.
Model,
ActivityGraphsFactory,
CollaborationsFactory,
CommonBehaviorFactory,
CoreFactory,
DataTypesFactory,
ExtensionMechanismsFactory,
ModelManagementFactory,
StateMachinesFactory,
UseCasesFactory,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class javax.swing.AbstractAction |
|
| Field Summary | |
private static String |
ACTION_PREFIX_KEY
Prefix for the action key. |
| Fields inherited from class org.tigris.gef.base.CmdCreateNode |
DEFAULT_NODE_CLASS |
| Fields inherited from class org.tigris.gef.base.Cmd |
_args, _resource |
| 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 | |
CmdCreateNode(Class nodeClass,
boolean sticky,
String resource,
String name)
Constructor for CmdCreateNode. |
|
CmdCreateNode(Class nodeClass,
String resource,
String name)
Constructor for CmdCreateNode. |
|
CmdCreateNode(Hashtable args,
String name)
Constructor for CmdCreateNode. |
|
CmdCreateNode(Hashtable args,
String resource,
String name)
Constructor for CmdCreateNode. |
|
CmdCreateNode(Object nodeClass,
boolean sticky,
String name)
Constructor for CmdCreateNode. |
|
CmdCreateNode(Object nodeClass,
String name)
Constructor for CmdCreateNode. |
|
| Method Summary | |
Object |
makeNode()
Delegate creation of the node to the uml model subsystem. |
private void |
putToolTip(String name)
Adds tooltip text to the Action. |
| Methods inherited from class org.tigris.gef.base.CmdCreateNode |
doIt, getActiveGraphModel, makeEdge, makeGraphModel, undoIt |
| Methods inherited from class org.tigris.gef.base.Cmd |
about, actionPerformed, cmdAtIndex, containsArg, getArg, getArg, getName, getResource, register, registeredCmds, setArg, setName, setResource, shouldBeEnabled, updateEnabled |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final String ACTION_PREFIX_KEY
| Constructor Detail |
public CmdCreateNode(Hashtable args,
String resource,
String name)
args - a hastable of argumentsresource - for localizing the namename - the to be localized tooltip name
public CmdCreateNode(Hashtable args,
String name)
args - a hastable of argumentsname - the to be localized name of the command = tooltip name
public CmdCreateNode(Class nodeClass,
String resource,
String name)
nodeClass - the class for which to create a node, and which
to create itselfresource - for localizing the namename - the tooltip name
public CmdCreateNode(Object nodeClass,
String name)
nodeClass - the class for which to create a node, and which
to create itselfname - the tooltip name
public CmdCreateNode(Class nodeClass,
boolean sticky,
String resource,
String name)
nodeClass - the class for which to create a node, and which
to create itselfsticky - the global sticky mode boolean allows the user
to place several nodes rapidly (in succession)resource - for localizing the namename - the tooltip name
public CmdCreateNode(Object nodeClass,
boolean sticky,
String name)
nodeClass - the class for which to create a node, and which
to create itselfsticky - the global sticky mode boolean allows the user
to place several nodes rapidly (in succession)name - the tooltip name| Method Detail |
public Object makeNode()
GraphFactory.makeNode(),
CmdCreateNode.makeNode()private void putToolTip(String name)
name - The key to localize as the name.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |