Class RMUndoSet

java.lang.Object
com.inductiveautomation.rm.base.RMUndoSet

public class RMUndoSet extends Object
This class represents a single undo but holds a list of PropertyChangeEvents.
  • Constructor Details

    • RMUndoSet

      public RMUndoSet()
      Creates a new empty undo set.
  • Method Details

    • getUndoTitle

      public String getUndoTitle()
      Returns the undo title.
    • getFullUndoTitle

      public String getFullUndoTitle()
      Returns the full title of this undo when used for undo.
    • getFullRedoTitle

      public String getFullRedoTitle()
      Returns the full title of this undo when used for redo.
    • getChangeCount

      public int getChangeCount()
      Returns the number of changes.
    • getChange

      public PropertyChangeEvent getChange(int anIndex)
      Returns the individual change at given index.
    • getChanges

      public List<PropertyChangeEvent> getChanges()
      Returns the selection to be set if undo is executed.
    • getChangeLast

      public PropertyChangeEvent getChangeLast()
      Returns the last change.
    • getUndoSelection

      public Object getUndoSelection()
      Returns the selection to be set if undo is executed.
    • setUndoSelection

      public void setUndoSelection(Object aSelection)
      Sets the selection to be set if undo is executed.
    • getRedoSelection

      public Object getRedoSelection()
      Returns the selection to be set if redo is executed.
    • setRedoSelection

      public void setRedoSelection(Object aSelection)
      Sets the selection to be set if redo is executed.
    • addPropertyChange

      public void addPropertyChange(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 String toString()
      Standard toString implementation.
      Overrides:
      toString in class Object
    • toString

      public String toString(PropertyChangeEvent anEvent, boolean doUndo)
      Returns a string for a property change event.