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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPropertyChange(PropertyChangeEvent anEvent) Adds a property change.getChange(int anIndex) Returns the individual change at given index.intReturns 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.voidredo()Executes redo for this event.voidreset()Resets this undo event for reuse.voidsetRedoSelection(Object aSelection) Sets the selection to be set if redo is executed.voidsetUndoSelection(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.voidundo()Executes undo for this event.
- 
Constructor Details- 
RMUndoSetpublic RMUndoSet()Creates a new empty undo set.
 
- 
- 
Method Details- 
getUndoTitleReturns the undo title.
- 
getFullUndoTitleReturns the full title of this undo when used for undo.
- 
getFullRedoTitleReturns the full title of this undo when used for redo.
- 
getChangeCountpublic int getChangeCount()Returns the number of changes.
- 
getChangeReturns the individual change at given index.
- 
getChangesReturns the selection to be set if undo is executed.
- 
getChangeLastReturns the last change.
- 
getUndoSelectionReturns the selection to be set if undo is executed.
- 
setUndoSelectionSets the selection to be set if undo is executed.
- 
getRedoSelectionReturns the selection to be set if redo is executed.
- 
setRedoSelectionSets the selection to be set if redo is executed.
- 
addPropertyChangeAdds a property change.
- 
undopublic void undo()Executes undo for this event.
- 
redopublic void redo()Executes redo for this event.
- 
resetpublic void reset()Resets this undo event for reuse.
- 
toStringStandard toString implementation.
- 
toStringReturns a string for a property change event.
 
-