javax.swing.event
Class UndoableEditEvent

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by javax.swing.event.UndoableEditEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class UndoableEditEvent
extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject

An event indicating that an operation which can be undone has occurred.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
UndoableEditEvent sample code for javax.swing.event.UndoableEditEvent.UndoableEditEvent(java.lang.Object, javax.swing.undo.UndoableEdit) definition code for javax.swing.event.UndoableEditEvent.UndoableEditEvent(java.lang.Object, javax.swing.undo.UndoableEdit) (Object sample code for java.lang.Object definition code for java.lang.Object  source, UndoableEdit sample code for javax.swing.undo.UndoableEdit definition code for javax.swing.undo.UndoableEdit  edit)
          Constructs an UndoableEditEvent object.
 
Method Summary
 UndoableEdit sample code for javax.swing.undo.UndoableEdit definition code for javax.swing.undo.UndoableEdit getEdit sample code for javax.swing.event.UndoableEditEvent.getEdit() definition code for javax.swing.event.UndoableEditEvent.getEdit() ()
          Returns the edit value.
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource() , toString sample code for java.util.EventObject.toString() definition code for java.util.EventObject.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

UndoableEditEvent sample code for javax.swing.event.UndoableEditEvent(java.lang.Object, javax.swing.undo.UndoableEdit) definition code for javax.swing.event.UndoableEditEvent(java.lang.Object, javax.swing.undo.UndoableEdit)

public UndoableEditEvent(Object sample code for java.lang.Object definition code for java.lang.Object  source,
                         UndoableEdit sample code for javax.swing.undo.UndoableEdit definition code for javax.swing.undo.UndoableEdit  edit)
Constructs an UndoableEditEvent object.

Parameters:
source - the Object that originated the event (typically this)
edit - an UndoableEdit object
Method Detail

getEdit sample code for javax.swing.event.UndoableEditEvent.getEdit() definition code for javax.swing.event.UndoableEditEvent.getEdit()

public UndoableEdit sample code for javax.swing.undo.UndoableEdit definition code for javax.swing.undo.UndoableEdit  getEdit()
Returns the edit value.

Returns:
the UndoableEdit object encapsulating the edit