com.mindfusion.diagramming
Class UndoValidationEvent

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

public class UndoValidationEvent
extends UndoEvent

Contains the arguments passed to the ActionRecording event handlers.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UndoValidationEvent(java.lang.Object source, Command command)
          Initializes a new instance of the UndoValidationEvent class.
 
Method Summary
 boolean getCancel()
          Gets a value indicating whether the operation should be canceled.
 void setCancel(boolean cancel)
          Sets a value indicating whether the operation should be canceled.
 
Methods inherited from class com.mindfusion.diagramming.UndoEvent
getCommand
 
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

UndoValidationEvent

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

Parameters:
source - The source of the event.
command - The Command related to the event.
Method Detail

getCancel

public boolean getCancel()
Gets a value indicating whether the operation should be canceled.

Returns:
true if the operation is cancelled; false if approved.

setCancel

public void setCancel(boolean cancel)
Sets a value indicating whether the operation should be canceled.

Parameters:
cancel - true to cancel the operation; false to approve it.