Class RMUndoer.RMUndoEvent

java.lang.Object
com.reportmill.base.RMObject
com.reportmill.base.RMUndoer.RMUndoEvent
All Implemented Interfaces:
RMArchiver.Archiving, Cloneable
Enclosing class:
RMUndoer

public static class RMUndoer.RMUndoEvent extends RMObject
This class reprents a distinct "undoable event".
  • Constructor Details

    • RMUndoEvent

      public RMUndoEvent()
      Creates a new empty undo event.
  • Method Details

    • getDirtyObjectCount

      public int getDirtyObjectCount()
      Returns the number of dirty objects.
    • getDirtyObject

      public RMObject getDirtyObject(int anIndex)
      Returns the specific dirty object at given index.
    • getDirtyObjectCopy

      public RMObject getDirtyObjectCopy(int anIndex)
      Returns the specific dirty object copy at the given index.
    • addDirtyObject

      public void addDirtyObject(RMObject anObject)
      Adds a dirty object to the dirty object list (and a copy to dirty objects copy list).
    • getUndoSelectedObjects

      public List getUndoSelectedObjects()
      Returns the list of objects to be selected if undo is executed.
    • getRedoSelectedObjects

      public List getRedoSelectedObjects()
      Returns the list of objects to be selected if redo is executed.
    • undo

      public void undo()
      Executes undo for this event.
    • reset

      public void reset()
      Resets this undo event for reuse.
    • removeUnchangedDirtyObjects

      public void removeUnchangedDirtyObjects()
      Removes any dirty objects that haven't really changed.
    • 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.