public class TransactionEventAssembler<E>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TransactionEventAssembler.UndoRedoSupport<E>
UndoRedoSupport, as the name suggests, will provide generic support for undoing and redoing groups of changes to an
EventList. |
| Constructor and Description |
|---|
TransactionEventAssembler(boolean rollbackSupport) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListEventListener(ListEventListener<? super E> listChangeListener) |
void |
beginEvent()
Demarks the beginning of a transaction which accumulates all ListEvents received during the transaction and fires a single aggregate ListEvent on
commitEvent(). |
void |
beginEvent(boolean buffered)
Demarks the beginning of a transaction.
|
void |
commitEvent()
Demarks the successful completion of a transaction.
|
void |
dispose() |
ListEventAssembler<E> |
getBufferedUpdates() |
void |
removeListEventListener(ListEventListener<? super E> listChangeListener) |
void |
rollbackEvent()
Demarks the unsuccessful completion of a transaction.
|
public TransactionEventAssembler(boolean rollbackSupport)
public ListEventAssembler<E> getBufferedUpdates()
public void beginEvent()
commitEvent().public void beginEvent(boolean buffered)
buffered is true then all ListEvents received during the transaction are accumulated and
fired as a single aggregate ListEvent on commitEvent(). If buffered is false then all ListEvents received during the
transaction are forwarded immediately and commitEvent() produces no ListEvent of its own.buffered - true indicates ListEvents should be buffered and sent on commitEvent(); false indicates they should be sent on
immediatelypublic void commitEvent()
beginEvent(true) then a single ListEvent will be fired from this TransactionList describing the changes accumulated during the transaction.public void rollbackEvent()
beginEvent(false) then a single ListEvent will be fired from this TransactionList describing the rollback of the changes accumulated during the
transaction.public void dispose()
public void addListEventListener(ListEventListener<? super E> listChangeListener)
public void removeListEventListener(ListEventListener<? super E> listChangeListener)
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by swimmesberger at Wed Feb 13 09:45:20 CET 2019