Package com.inductiveautomation.rm.base
Class RMUndoer
java.lang.Object
com.inductiveautomation.ignition.common.util.AbstractChangeable
com.inductiveautomation.rm.base.RMUndoer
- All Implemented Interfaces:
- Changeable
RMUndoer - this object manages undo by keeping lists of property changes.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface for undo/redo selection.
- 
Field SummaryFields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeablechangeEvent, listenerList
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPropertyChange(PropertyChangeEvent anEvent) Adds a property change.voiddisable()Disables undoer so it can receive new changes.voidenable()Enables undoer.Returns the active undo set.Returns the list of objects that should be selected after current undo is redone.Returns the last redo.Returns the list of redo sets.Returns the list of objects that should be selected after current undo is fired.Returns the last undo.Returns the list of undo sets.booleanhasRedos()Returns whether undoer has Redo changes stored away.booleanhasUndos()Returns whether undoer has Undo changes stored away.booleanisBenignChange(String aString) Returns whether a given change doesn't really effect signficant state change.booleanisDuplicate(String aTitle, RMObject anObj) Returns whether given title is title of last undo.booleanReturns whether undoer is disabled.redo()Pops last redo set off stack and has it update all changed objects it contains.voidreset()Resets the undoer to its initial state (good to do when a document is saved).voidPushes current undo record on the stack and opens new one.voidsetActiveUndoSet(RMUndoSet anUndoSet) Sets the active event (presumably from undo sets list).voidsetRedoSelection(Object aList) Sets the list of objects that should be selected after current undo is redone.voidsetUndoSelection(Object aList) Sets the list of objects that should be selected after current undo is fired.voidsetUndoTitle(String aString) Sets the title of the current undo.toString()Standard toString implementation.undo()Pops last undo set off stack an has it update all changed objects it contains.Methods inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeableaddChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
- 
Constructor Details- 
RMUndoerpublic RMUndoer()Creates a new undoer.
 
- 
- 
Method Details- 
getActiveUndoSetReturns the active undo set.
- 
setActiveUndoSetSets the active event (presumably from undo sets list).
- 
setUndoTitleSets the title of the current undo.
- 
getUndoSetsReturns the list of undo sets.
- 
getRedoSetsReturns the list of redo sets.
- 
getUndoSetLastReturns the last undo.
- 
getRedoSetLastReturns the last redo.
- 
getUndoSelectionReturns the list of objects that should be selected after current undo is fired.
- 
setUndoSelectionSets the list of objects that should be selected after current undo is fired.
- 
getRedoSelectionReturns the list of objects that should be selected after current undo is redone.
- 
setRedoSelectionSets the list of objects that should be selected after current undo is redone.
- 
addPropertyChangeAdds a property change.
- 
saveChangespublic void saveChanges()Pushes current undo record on the stack and opens new one.
- 
undoPops last undo set off stack an has it update all changed objects it contains.
- 
redoPops last redo set off stack and has it update all changed objects it contains.
- 
isEnabledpublic boolean isEnabled()Returns whether undoer is disabled.
- 
disablepublic void disable()Disables undoer so it can receive new changes.
- 
enablepublic void enable()Enables undoer.
- 
resetpublic void reset()Resets the undoer to its initial state (good to do when a document is saved).
- 
isBenignChangeReturns whether a given change doesn't really effect signficant state change.
- 
hasUndospublic boolean hasUndos()Returns whether undoer has Undo changes stored away.
- 
hasRedospublic boolean hasRedos()Returns whether undoer has Redo changes stored away.
- 
isDuplicateReturns whether given title is title of last undo.
- 
toStringStandard toString implementation.
 
-