Class UndoRedoEditEvent
java.lang.Object
java.util.EventObject
org.gvsig.gui.beans.editabletextcomponent.event.UndoRedoEditEvent
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected shortstatic final shortstatic final shortFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionUndoRedoEditEvent(Object source, short type, String oldText, String newText) Constructs an UndoableEditEvent object. -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
UNDO
public static final short UNDO- See Also:
-
REDO
public static final short REDO- See Also:
-
myType
protected transient short myType -
myOldText
-
myNewText
-
-
Constructor Details
-
UndoRedoEditEvent
Constructs an UndoableEditEvent object.- Parameters:
source- the Object that originated the event (typicallythis)type- type of operation done (undo or redo)oldText- text before the operationnewText- text after the operation
-
-
Method Details
-
getType
public short getType()Returns the edit operation identifier value.- Returns:
- the UndoableEdit object encapsulating the edit
-
getOldText
Returns the previous text.- Returns:
- the previous text
-
getNewText
Returns the new text.- Returns:
- the new text
-
toString
Returns aStringrepresentation of thisUndoRedoEditEvent.- Overrides:
toStringin classEventObject- Returns:
- a
Stringrepresentation of thisUndoRedoEditEvent
-