Package com.inductiveautomation.rm.base
Class RMUndoSet
java.lang.Object
com.inductiveautomation.rm.base.RMUndoSet
This class represents a single undo but holds a list of PropertyChangeEvents.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChange
(PropertyChangeEvent anEvent) Adds a property change.getChange
(int anIndex) Returns the individual change at given index.int
Returns the number of changes.Returns the last change.Returns the selection to be set if undo is executed.Returns the full title of this undo when used for redo.Returns the full title of this undo when used for undo.Returns the selection to be set if redo is executed.Returns the selection to be set if undo is executed.Returns the undo title.void
redo()
Executes redo for this event.void
reset()
Resets this undo event for reuse.void
setRedoSelection
(Object aSelection) Sets the selection to be set if redo is executed.void
setUndoSelection
(Object aSelection) Sets the selection to be set if undo is executed.toString()
Standard toString implementation.toString
(PropertyChangeEvent anEvent, boolean doUndo) Returns a string for a property change event.void
undo()
Executes undo for this event.
-
Constructor Details
-
RMUndoSet
public RMUndoSet()Creates a new empty undo set.
-
-
Method Details
-
getUndoTitle
Returns the undo title. -
getFullUndoTitle
Returns the full title of this undo when used for undo. -
getFullRedoTitle
Returns the full title of this undo when used for redo. -
getChangeCount
public int getChangeCount()Returns the number of changes. -
getChange
Returns the individual change at given index. -
getChanges
Returns the selection to be set if undo is executed. -
getChangeLast
Returns the last change. -
getUndoSelection
Returns the selection to be set if undo is executed. -
setUndoSelection
Sets the selection to be set if undo is executed. -
getRedoSelection
Returns the selection to be set if redo is executed. -
setRedoSelection
Sets the selection to be set if redo is executed. -
addPropertyChange
Adds a property change. -
undo
public void undo()Executes undo for this event. -
redo
public void redo()Executes redo for this event. -
reset
public void reset()Resets this undo event for reuse. -
toString
Standard toString implementation. -
toString
Returns a string for a property change event.
-