|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.util.UndoableCommand
public class UndoableCommand
Constructor Summary | |
---|---|
UndoableCommand(Command newWrappedCommand)
|
Method Summary | |
---|---|
void |
addCommandListener(CommandListener newCommandListener)
|
void |
commandExecutable(java.util.EventObject commandEvent)
|
void |
commandExecuted(java.util.EventObject commandEvent)
|
void |
commandNotExecutable(java.util.EventObject commandEvent)
|
AbstractCommand.EventDispatcher |
createEventDispatcher()
|
void |
execute()
Executes the command. |
void |
figureSelectionChanged(DrawingView view)
Sent when the figure selection has changed. |
DrawingEditor |
getDrawingEditor()
|
Undoable |
getUndoActivity()
|
boolean |
isExecutable()
Tests if the command can be executed. |
java.lang.String |
name()
Gets the command name. |
void |
removeCommandListener(CommandListener oldCommandListener)
|
void |
setUndoActivity(Undoable newUndoableActivity)
|
DrawingView |
view()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndoableCommand(Command newWrappedCommand)
Method Detail |
---|
public void execute()
execute
in interface Command
public boolean isExecutable()
isExecutable
in interface Command
public java.lang.String name()
name
in interface Command
public DrawingEditor getDrawingEditor()
getDrawingEditor
in interface Command
public DrawingView view()
public void figureSelectionChanged(DrawingView view)
FigureSelectionListener
figureSelectionChanged
in interface FigureSelectionListener
view
- DrawingViewpublic Undoable getUndoActivity()
getUndoActivity
in interface Command
public void setUndoActivity(Undoable newUndoableActivity)
setUndoActivity
in interface Command
public void addCommandListener(CommandListener newCommandListener)
addCommandListener
in interface Command
public void removeCommandListener(CommandListener oldCommandListener)
removeCommandListener
in interface Command
public AbstractCommand.EventDispatcher createEventDispatcher()
public void commandExecuted(java.util.EventObject commandEvent)
commandExecuted
in interface CommandListener
public void commandExecutable(java.util.EventObject commandEvent)
commandExecutable
in interface CommandListener
public void commandNotExecutable(java.util.EventObject commandEvent)
commandNotExecutable
in interface CommandListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |