Package com.reportmill.base
Class RMUndoer.RMUndoEvent
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.base.RMUndoer.RMUndoEvent
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Enclosing class:
- RMUndoer
This class reprents a distinct "undoable event".
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDirtyObject(RMObject anObject) Adds a dirty object to the dirty object list (and a copy to dirty objects copy list).getDirtyObject(int anIndex) Returns the specific dirty object at given index.getDirtyObjectCopy(int anIndex) Returns the specific dirty object copy at the given index.intReturns the number of dirty objects.Returns the full title of this undo when used for redo.Returns the full title of this undo when used for undo.Returns the list of objects to be selected if redo is executed.Returns the list of objects to be selected if undo is executed.voidRemoves any dirty objects that haven't really changed.voidreset()Resets this undo event for reuse.voidundo()Executes undo for this event.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RMUndoEventpublic RMUndoEvent()Creates a new empty undo event.
 
- 
- 
Method Details- 
getDirtyObjectCountpublic int getDirtyObjectCount()Returns the number of dirty objects.
- 
getDirtyObjectReturns the specific dirty object at given index.
- 
getDirtyObjectCopyReturns the specific dirty object copy at the given index.
- 
addDirtyObjectAdds a dirty object to the dirty object list (and a copy to dirty objects copy list).
- 
getUndoSelectedObjectsReturns the list of objects to be selected if undo is executed.
- 
getRedoSelectedObjectsReturns the list of objects to be selected if redo is executed.
- 
undopublic void undo()Executes undo for this event.
- 
resetpublic void reset()Resets this undo event for reuse.
- 
removeUnchangedDirtyObjectspublic void removeUnchangedDirtyObjects()Removes any dirty objects that haven't really changed.
- 
getFullUndoTitleReturns the full title of this undo when used for undo.
- 
getFullRedoTitleReturns the full title of this undo when used for redo.
 
-