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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Object aObject) Deprecated.Appends to this list anObject
supposed to stored the information corresponding to an action done by anILcdUndoable
and that may need undo/redo.void
addPropertyChangeListener
(PropertyChangeListener aListener) Deprecated.Adds aPropertyChangeListener
to the listener list.protected void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) Deprecated.int
Deprecated.Returns the number of redo operations that can still be performed.int
Deprecated.Returns the number of undo operations that can still be performed.void
redo
(ILcdFunction aRedoFunction) Deprecated.Performs a redo by retrieving the correspondingObject
, and applying the givenILcdFunction
.void
Deprecated.Removes all the Objects supposed to stored the information required by anILcdUndoable
to perform undo and redo operations.void
Deprecated.Removes aPropertyChangeListener
from the listener list.void
undo
(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 anObject
supposed to stored the information corresponding to an action done by anILcdUndoable
and that may need undo/redo. ThisObject
can be used later by thisILcdUndoable
in order to perform the undo or redo operation. -
removeAllElements
public void removeAllElements()Deprecated.Removes all the Objects supposed to stored the information required by anILcdUndoable
to 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 aPropertyChangeListener
to the listener list. The listener is registered for all properties.- Parameters:
aListener
- thePropertyChangeListener
to be added.
-
removePropertyChangeListener
Deprecated.Removes aPropertyChangeListener
from the listener list. This removes aPropertyChangeListener
that was registered for all properties.- Parameters:
aListener
- thePropertyChangeListener
to be removed.
-
ILcdUndoable
andTLcdUndoManager
.