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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
An interface for undo/redo selection. -
Field Summary
Fields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
changeEvent, listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChange
(PropertyChangeEvent anEvent) Adds a property change.void
disable()
Disables undoer so it can receive new changes.void
enable()
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.boolean
hasRedos()
Returns whether undoer has Redo changes stored away.boolean
hasUndos()
Returns whether undoer has Undo changes stored away.boolean
isBenignChange
(String aString) Returns whether a given change doesn't really effect signficant state change.boolean
isDuplicate
(String aTitle, RMObject anObj) Returns whether given title is title of last undo.boolean
Returns whether undoer is disabled.redo()
Pops last redo set off stack and has it update all changed objects it contains.void
reset()
Resets the undoer to its initial state (good to do when a document is saved).void
Pushes current undo record on the stack and opens new one.void
setActiveUndoSet
(RMUndoSet anUndoSet) Sets the active event (presumably from undo sets list).void
setRedoSelection
(Object aList) Sets the list of objects that should be selected after current undo is redone.void
setUndoSelection
(Object aList) Sets the list of objects that should be selected after current undo is fired.void
setUndoTitle
(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.AbstractChangeable
addChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
-
Constructor Details
-
RMUndoer
public RMUndoer()Creates a new undoer.
-
-
Method Details
-
getActiveUndoSet
Returns the active undo set. -
setActiveUndoSet
Sets the active event (presumably from undo sets list). -
setUndoTitle
Sets the title of the current undo. -
getUndoSets
Returns the list of undo sets. -
getRedoSets
Returns the list of redo sets. -
getUndoSetLast
Returns the last undo. -
getRedoSetLast
Returns the last redo. -
getUndoSelection
Returns the list of objects that should be selected after current undo is fired. -
setUndoSelection
Sets the list of objects that should be selected after current undo is fired. -
getRedoSelection
Returns the list of objects that should be selected after current undo is redone. -
setRedoSelection
Sets the list of objects that should be selected after current undo is redone. -
addPropertyChange
Adds a property change. -
saveChanges
public void saveChanges()Pushes current undo record on the stack and opens new one. -
undo
Pops last undo set off stack an has it update all changed objects it contains. -
redo
Pops last redo set off stack and has it update all changed objects it contains. -
isEnabled
public boolean isEnabled()Returns whether undoer is disabled. -
disable
public void disable()Disables undoer so it can receive new changes. -
enable
public void enable()Enables undoer. -
reset
public void reset()Resets the undoer to its initial state (good to do when a document is saved). -
isBenignChange
Returns whether a given change doesn't really effect signficant state change. -
hasUndos
public boolean hasUndos()Returns whether undoer has Undo changes stored away. -
hasRedos
public boolean hasRedos()Returns whether undoer has Redo changes stored away. -
isDuplicate
Returns whether given title is title of last undo. -
toString
Standard toString implementation.
-