com.developpez.ydisanto.swing.event
Class UndoEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.developpez.ydisanto.swing.event.UndoEvent
All Implemented Interfaces:
java.io.Serializable

public class UndoEvent
extends java.util.EventObject

This high-level event is generated by a undo or redo Action.

See Also:
UndoListener, Serialized Form

Field Summary
static int REDO
           
static int UNDO
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UndoEvent(java.awt.event.ActionEvent e, int type)
          Creates a new instance of UndoEvent.
 
Method Summary
 int getType()
          Returns UndoEvent.UNDO if this UndoEvent has been generated by an undo Action and Undo.REDO if it has been generated by an redo Action.
 
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
 

Field Detail

UNDO

public static final int UNDO
See Also:
Constant Field Values

REDO

public static final int REDO
See Also:
Constant Field Values
Constructor Detail

UndoEvent

public UndoEvent(java.awt.event.ActionEvent e,
                 int type)
Creates a new instance of UndoEvent.

Parameters:
e - ActionEvent that generate the UndoEvent.
type - UndoEvent.UNDO if this UndoEvent has been generated by an undo Action and Undo.REDO if it has been generated by an redo Action.
Method Detail

getType

public int getType()
Returns UndoEvent.UNDO if this UndoEvent has been generated by an undo Action and Undo.REDO if it has been generated by an redo Action.

Returns:
UndoEvent.UNDO if this UndoEvent has been generated by an undo Action and Undo.REDO if it has been generated by an redo Action.