com.mindfusion.diagramming
Class UndoEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mindfusion.diagramming.UndoEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UndoValidationEvent

public class UndoEvent
extends java.util.EventObject

Contains the arguments passed to the ActionRecorded, ActionUndone and ActionRedone event handlers.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UndoEvent(java.lang.Object source, Command command)
          Initializes a new instance of the UndoEvent class.
 
Method Summary
 Command getCommand()
          Gets a reference to the Command instance related to the event being handled.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UndoEvent

public UndoEvent(java.lang.Object source,
                 Command command)
Initializes a new instance of the UndoEvent class.

Parameters:
source - The source of the event.
command - The getCommand() command related to the event.
Method Detail

getCommand

public Command getCommand()
Gets a reference to the Command instance related to the event being handled.

Returns:
An instance of the Command class.