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
 
 public class RMUndoer extends AbstractChangeable RMUndoer - this object manages undo by keeping lists of property changes.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceRMUndoer.SelectionAn interface for undo/redo selection.
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeablechangeEvent, listenerList
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMUndoer()Creates a new undoer.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChange(java.beans.PropertyChangeEvent anEvent)Adds a property change.voiddisable()Disables undoer so it can receive new changes.voidenable()Enables undoer.RMUndoSetgetActiveUndoSet()Returns the active undo set.java.lang.ObjectgetRedoSelection()Returns the list of objects that should be selected after current undo is redone.RMUndoSetgetRedoSetLast()Returns the last redo.java.util.List<RMUndoSet>getRedoSets()Returns the list of redo sets.java.lang.ObjectgetUndoSelection()Returns the list of objects that should be selected after current undo is fired.RMUndoSetgetUndoSetLast()Returns the last undo.java.util.List<RMUndoSet>getUndoSets()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(java.lang.String aString)Returns whether a given change doesn't really effect signficant state change.booleanisDuplicate(java.lang.String aTitle, RMObject anObj)Returns whether given title is title of last undo.booleanisEnabled()Returns whether undoer is disabled.RMUndoSetredo()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).voidsaveChanges()Pushes current undo record on the stack and opens new one.voidsetActiveUndoSet(RMUndoSet anUndoSet)Sets the active event (presumably from undo sets list).voidsetRedoSelection(java.lang.Object aList)Sets the list of objects that should be selected after current undo is redone.voidsetUndoSelection(java.lang.Object aList)Sets the list of objects that should be selected after current undo is fired.voidsetUndoTitle(java.lang.String aString)Sets the title of the current undo.java.lang.StringtoString()Standard toString implementation.RMUndoSetundo()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
 
- 
 
- 
- 
- 
Method Detail- 
getActiveUndoSetpublic RMUndoSet getActiveUndoSet() Returns the active undo set.
 - 
setActiveUndoSetpublic void setActiveUndoSet(RMUndoSet anUndoSet) Sets the active event (presumably from undo sets list).
 - 
setUndoTitlepublic void setUndoTitle(java.lang.String aString) Sets the title of the current undo.
 - 
getUndoSetspublic java.util.List<RMUndoSet> getUndoSets() Returns the list of undo sets.
 - 
getRedoSetspublic java.util.List<RMUndoSet> getRedoSets() Returns the list of redo sets.
 - 
getUndoSetLastpublic RMUndoSet getUndoSetLast() Returns the last undo.
 - 
getRedoSetLastpublic RMUndoSet getRedoSetLast() Returns the last redo.
 - 
getUndoSelectionpublic java.lang.Object getUndoSelection() Returns the list of objects that should be selected after current undo is fired.
 - 
setUndoSelectionpublic void setUndoSelection(java.lang.Object aList) Sets the list of objects that should be selected after current undo is fired.
 - 
getRedoSelectionpublic java.lang.Object getRedoSelection() Returns the list of objects that should be selected after current undo is redone.
 - 
setRedoSelectionpublic void setRedoSelection(java.lang.Object aList) Sets the list of objects that should be selected after current undo is redone.
 - 
addPropertyChangepublic void addPropertyChange(java.beans.PropertyChangeEvent anEvent) Adds a property change.
 - 
saveChangespublic void saveChanges() Pushes current undo record on the stack and opens new one.
 - 
undopublic RMUndoSet undo() Pops last undo set off stack an has it update all changed objects it contains.
 - 
redopublic RMUndoSet redo() Pops 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).
 - 
isBenignChangepublic boolean isBenignChange(java.lang.String aString) Returns 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.
 - 
isDuplicatepublic boolean isDuplicate(java.lang.String aTitle, RMObject anObj)Returns whether given title is title of last undo.
 - 
toStringpublic java.lang.String toString() Standard toString implementation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-