|
||||||||||
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.CmdSpawn
public class CmdSpawn
Cmd to open a new editor on the same document as in the current editor. Works by making a new JGraphFrame with a clone of the current editor. The argument "dimension" may be set to th desired size of the new window.
Editor
,
JGraphFrame
,
Serialized FormField Summary |
---|
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 | |
---|---|
CmdSpawn()
|
Method Summary | |
---|---|
void |
doIt()
Perform whatever Cmd this Cmd is meant to do. |
void |
undoIt()
Undo the Cmd using information stored during its execution. |
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 |
Constructor Detail |
---|
public CmdSpawn()
Method Detail |
---|
public void doIt()
Cmd
doIt
in class Cmd
public void undoIt()
Cmd
TODO Abandon this. We need the memento pattern for undo
undoIt
in class Cmd
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |