Class UndoRedoEditEvent

java.lang.Object
java.util.EventObject
org.gvsig.gui.beans.editabletextcomponent.event.UndoRedoEditEvent
All Implemented Interfaces:
Serializable

public class UndoRedoEditEvent extends EventObject

An event indicating the kind of operation occurred: undo or redo.

Version:
12/02/2008
Author:
Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
See Also:
  • Field Details

    • UNDO

      public static final short UNDO
      See Also:
    • REDO

      public static final short REDO
      See Also:
    • myType

      protected transient short myType
    • myOldText

      protected transient String myOldText
    • myNewText

      protected transient String myNewText
  • Constructor Details

    • UndoRedoEditEvent

      public UndoRedoEditEvent(Object source, short type, String oldText, String newText)
      Constructs an UndoableEditEvent object.
      Parameters:
      source - the Object that originated the event (typically this)
      type - type of operation done (undo or redo)
      oldText - text before the operation
      newText - text after the operation
  • Method Details

    • getType

      public short getType()
      Returns the edit operation identifier value.
      Returns:
      the UndoableEdit object encapsulating the edit
    • getOldText

      public String getOldText()
      Returns the previous text.
      Returns:
      the previous text
    • getNewText

      public String getNewText()
      Returns the new text.
      Returns:
      the new text
    • toString

      public String toString()
      Returns a String representation of this UndoRedoEditEvent.
      Overrides:
      toString in class EventObject
      Returns:
      a String representation of this UndoRedoEditEvent