Package com.inductiveautomation.rm.base
Class RMUndoSet
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMUndoSet
 
- 
 public class RMUndoSet extends java.lang.ObjectThis class represents a single undo but holds a list of PropertyChangeEvents.
- 
- 
Constructor SummaryConstructors Constructor Description RMUndoSet()Creates a new empty undo set.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChange(java.beans.PropertyChangeEvent anEvent)Adds a property change.java.beans.PropertyChangeEventgetChange(int anIndex)Returns the individual change at given index.intgetChangeCount()Returns the number of changes.java.beans.PropertyChangeEventgetChangeLast()Returns the last change.java.util.List<java.beans.PropertyChangeEvent>getChanges()Returns the selection to be set if undo is executed.java.lang.StringgetFullRedoTitle()Returns the full title of this undo when used for redo.java.lang.StringgetFullUndoTitle()Returns the full title of this undo when used for undo.java.lang.ObjectgetRedoSelection()Returns the selection to be set if redo is executed.java.lang.ObjectgetUndoSelection()Returns the selection to be set if undo is executed.java.lang.StringgetUndoTitle()Returns the undo title.voidredo()Executes redo for this event.voidreset()Resets this undo event for reuse.voidsetRedoSelection(java.lang.Object aSelection)Sets the selection to be set if redo is executed.voidsetUndoSelection(java.lang.Object aSelection)Sets the selection to be set if undo is executed.java.lang.StringtoString()Standard toString implementation.java.lang.StringtoString(java.beans.PropertyChangeEvent anEvent, boolean doUndo)Returns a string for a property change event.voidundo()Executes undo for this event.
 
- 
- 
- 
Method Detail- 
getUndoTitlepublic java.lang.String getUndoTitle() Returns the undo title.
 - 
getFullUndoTitlepublic java.lang.String getFullUndoTitle() Returns the full title of this undo when used for undo.
 - 
getFullRedoTitlepublic java.lang.String getFullRedoTitle() Returns the full title of this undo when used for redo.
 - 
getChangeCountpublic int getChangeCount() Returns the number of changes.
 - 
getChangepublic java.beans.PropertyChangeEvent getChange(int anIndex) Returns the individual change at given index.
 - 
getChangespublic java.util.List<java.beans.PropertyChangeEvent> getChanges() Returns the selection to be set if undo is executed.
 - 
getChangeLastpublic java.beans.PropertyChangeEvent getChangeLast() Returns the last change.
 - 
getUndoSelectionpublic java.lang.Object getUndoSelection() Returns the selection to be set if undo is executed.
 - 
setUndoSelectionpublic void setUndoSelection(java.lang.Object aSelection) Sets the selection to be set if undo is executed.
 - 
getRedoSelectionpublic java.lang.Object getRedoSelection() Returns the selection to be set if redo is executed.
 - 
setRedoSelectionpublic void setRedoSelection(java.lang.Object aSelection) Sets the selection to be set if redo is executed.
 - 
addPropertyChangepublic void addPropertyChange(java.beans.PropertyChangeEvent anEvent) Adds 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.
 - 
toStringpublic java.lang.String toString() Standard toString implementation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString(java.beans.PropertyChangeEvent anEvent, boolean doUndo)Returns a string for a property change event.
 
- 
 
-