Package com.luciad.gui
Class TLcdUndoHistory
java.lang.Object
com.luciad.gui.TLcdUndoHistory
Deprecated.
This is an utility class to help making an
ILcdUndoable that can perform undo/redo
operations. It keeps a list of Objects that represents a sequence of actions done by an
ILcdUndoable. Each Object is supposed to contains the information the
ILcdUndoable needs to keep in order to perform an undo or redo. The call of
undo(ILcdFunction), respectively redo(ILcdFunction), will retrieve the
corresponding Object and apply on it the given ILcdFunction. This
ILcdFunction has to be given by the ILcdUndobale and shall effectively
performs the undo, respectively redo, action. This class keep track of the number of undo and
redo left.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(Object aObject) Deprecated.Appends to this list anObjectsupposed to stored the information corresponding to an action done by anILcdUndoableand that may need undo/redo.voidaddPropertyChangeListener(PropertyChangeListener aListener) Deprecated.Adds aPropertyChangeListenerto the listener list.protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) Deprecated.intDeprecated.Returns the number of redo operations that can still be performed.intDeprecated.Returns the number of undo operations that can still be performed.voidredo(ILcdFunction aRedoFunction) Deprecated.Performs a redo by retrieving the correspondingObject, and applying the givenILcdFunction.voidDeprecated.Removes all the Objects supposed to stored the information required by anILcdUndoableto perform undo and redo operations.voidDeprecated.Removes aPropertyChangeListenerfrom the listener list.voidundo(ILcdFunction aUndoFunction) Deprecated.Performs an undo by retrieving the correspondingObject, and applying the givenILcdFunction.
-
Constructor Details
-
TLcdUndoHistory
public TLcdUndoHistory()Deprecated.Construct an emptyTLcdUndoHistory.
-
-
Method Details
-
getUndoLeft
public int getUndoLeft()Deprecated.Returns the number of undo operations that can still be performed. -
getRedoLeft
public int getRedoLeft()Deprecated.Returns the number of redo operations that can still be performed. -
addElement
Deprecated.Appends to this list anObjectsupposed to stored the information corresponding to an action done by anILcdUndoableand that may need undo/redo. ThisObjectcan be used later by thisILcdUndoablein order to perform the undo or redo operation. -
removeAllElements
public void removeAllElements()Deprecated.Removes all the Objects supposed to stored the information required by anILcdUndoableto perform undo and redo operations. -
undo
Deprecated.Performs an undo by retrieving the correspondingObject, and applying the givenILcdFunction. It decrements the number of remaining undo. -
redo
Deprecated.Performs a redo by retrieving the correspondingObject, and applying the givenILcdFunction. It decrements the number of remaining redo. -
firePropertyChange
Deprecated. -
addPropertyChangeListener
Deprecated.Adds aPropertyChangeListenerto the listener list. The listener is registered for all properties.- Parameters:
aListener- thePropertyChangeListenerto be added.
-
removePropertyChangeListener
Deprecated.Removes aPropertyChangeListenerfrom the listener list. This removes aPropertyChangeListenerthat was registered for all properties.- Parameters:
aListener- thePropertyChangeListenerto be removed.
-
ILcdUndoableandTLcdUndoManager.