public static final class TransactionEventAssembler.UndoRedoSupport<E>
extends java.lang.Object
EventList. The granularity of
each undoable edit is determined by the ListEvent from which it was generated.| Modifier and Type | Class and Description |
|---|---|
static interface |
TransactionEventAssembler.UndoRedoSupport.Edit
Provides an easy interface to undo/redo a ListEvent in its entirety.
|
static interface |
TransactionEventAssembler.UndoRedoSupport.Listener
Implementations of this Listener interface should be registered with an UndoRedoSupport object via
UndoRedoSupport.addUndoSupportListener(ca.odell.glazedlists.UndoRedoSupport.Listener). |
| Modifier and Type | Method and Description |
|---|---|
void |
addUndoSupportListener(TransactionEventAssembler.UndoRedoSupport.Listener l)
Add a
TransactionEventAssembler.UndoRedoSupport.Listener which will receive a callback when an undoable edit occurs on the given source EventList. |
static <E> TransactionEventAssembler.UndoRedoSupport<E> |
install(TransactionEventAssembler<E> source)
Installs support for undoing and redoing changes to the given
source. |
void |
removeUndoSupportListener(TransactionEventAssembler.UndoRedoSupport.Listener l)
Remove a
TransactionEventAssembler.UndoRedoSupport.Listener from receiving a callback when an undoable edit occurs on the given source EventList. |
void |
uninstall()
This method removes undo/redo support from the
EventList it was installed on. |
public void addUndoSupportListener(TransactionEventAssembler.UndoRedoSupport.Listener l)
TransactionEventAssembler.UndoRedoSupport.Listener which will receive a callback when an undoable edit occurs on the given source EventList.public void removeUndoSupportListener(TransactionEventAssembler.UndoRedoSupport.Listener l)
TransactionEventAssembler.UndoRedoSupport.Listener from receiving a callback when an undoable edit occurs on the given source EventList.public static <E> TransactionEventAssembler.UndoRedoSupport<E> install(TransactionEventAssembler<E> source)
source. To be notified of undoable changes, a TransactionEventAssembler.UndoRedoSupport.Listener must be
registered on the object that is returned by this method. That Listener object will typically add the TransactionEventAssembler.UndoRedoSupport.Edit it is given over to whatever data
structure is managing all undo/redo functions for the entire application.source - the EventList on which to provide undo/redo capabilitiespublic void uninstall()
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by swimmesberger at Wed Feb 13 09:45:20 CET 2019