Package com.inductiveautomation.rm.base
Class RMUndoSet
- java.lang.Object
-
- com.inductiveautomation.rm.base.RMUndoSet
-
public class RMUndoSet extends java.lang.Object
This 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 void
addPropertyChange(java.beans.PropertyChangeEvent anEvent)
Adds a property change.java.beans.PropertyChangeEvent
getChange(int anIndex)
Returns the individual change at given index.int
getChangeCount()
Returns the number of changes.java.beans.PropertyChangeEvent
getChangeLast()
Returns the last change.java.util.List<java.beans.PropertyChangeEvent>
getChanges()
Returns the selection to be set if undo is executed.java.lang.String
getFullRedoTitle()
Returns the full title of this undo when used for redo.java.lang.String
getFullUndoTitle()
Returns the full title of this undo when used for undo.java.lang.Object
getRedoSelection()
Returns the selection to be set if redo is executed.java.lang.Object
getUndoSelection()
Returns the selection to be set if undo is executed.java.lang.String
getUndoTitle()
Returns the undo title.void
redo()
Executes redo for this event.void
reset()
Resets this undo event for reuse.void
setRedoSelection(java.lang.Object aSelection)
Sets the selection to be set if redo is executed.void
setUndoSelection(java.lang.Object aSelection)
Sets the selection to be set if undo is executed.java.lang.String
toString()
Standard toString implementation.java.lang.String
toString(java.beans.PropertyChangeEvent anEvent, boolean doUndo)
Returns a string for a property change event.void
undo()
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:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.beans.PropertyChangeEvent anEvent, boolean doUndo)
Returns a string for a property change event.
-
-