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 Summary
Constructors Constructor Description RMUndoSet()Creates a new empty undo set.
-
Method Summary
All 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
-
getUndoTitle
public java.lang.String getUndoTitle()
Returns the undo title.
-
getFullUndoTitle
public java.lang.String getFullUndoTitle()
Returns the full title of this undo when used for undo.
-
getFullRedoTitle
public java.lang.String getFullRedoTitle()
Returns the full title of this undo when used for redo.
-
getChangeCount
public int getChangeCount()
Returns the number of changes.
-
getChange
public java.beans.PropertyChangeEvent getChange(int anIndex)
Returns the individual change at given index.
-
getChanges
public java.util.List<java.beans.PropertyChangeEvent> getChanges()
Returns the selection to be set if undo is executed.
-
getChangeLast
public java.beans.PropertyChangeEvent getChangeLast()
Returns the last change.
-
getUndoSelection
public java.lang.Object getUndoSelection()
Returns the selection to be set if undo is executed.
-
setUndoSelection
public void setUndoSelection(java.lang.Object aSelection)
Sets the selection to be set if undo is executed.
-
getRedoSelection
public java.lang.Object getRedoSelection()
Returns the selection to be set if redo is executed.
-
setRedoSelection
public void setRedoSelection(java.lang.Object aSelection)
Sets the selection to be set if redo is executed.
-
addPropertyChange
public void addPropertyChange(java.beans.PropertyChangeEvent anEvent)
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
public java.lang.String toString()
Standard toString implementation.- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.beans.PropertyChangeEvent anEvent, boolean doUndo)Returns a string for a property change event.
-
-