ChangesImpl
public interface Changes
Modifier and Type | Method | Description |
---|---|---|
vjavax.observer.Subscription |
addListener(ChangeListener l) |
Adds the specified change listener.
|
vjavax.observer.Subscription |
addListener(ChangeListener l,
boolean recursive) |
Adds the specified change listener.
|
eu.mihosoft.vcollections.VList<Change> |
all() |
Returns all changes to the model (observable collection) that were
recorded since the last
start() call. |
void |
clear() |
Removes all recorded changes (also removes transactions).
|
boolean |
isModelVersioningEnabled() |
Indicates whether model versioning is enabled.
|
ModelVersion |
modelVersion() |
Returns the model version.
|
void |
publishTransaction() |
Publishes a transaction that consists of all changes since the last
startTransaction() or publishTransaction() call. |
void |
start() |
Starts recording changes.
|
void |
startTransaction() |
Starts a new transaction.
|
void |
stop() |
Stops recording changes.
|
eu.mihosoft.vcollections.VList<Transaction> |
transactions() |
Returns all model transactions (observable collection) that were
published since the last
start() call. |
vjavax.observer.Subscription addListener(ChangeListener l)
l
- the listener to addvjavax.observer.Subscription addListener(ChangeListener l, boolean recursive)
l
- the listher to addrecursive
- determines whether to add the listener recuirsively to all objects of the
current object graphvoid start()
stop()
void startTransaction()
Transaction
,
publishTransaction()
void publishTransaction()
startTransaction()
or publishTransaction()
call.Transaction
,
startTransaction()
void stop()
start()
eu.mihosoft.vcollections.VList<Change> all()
start()
call.start()
calleu.mihosoft.vcollections.VList<Transaction> transactions()
start()
call.void clear()
ModelVersion modelVersion()
boolean isModelVersioningEnabled()
true
if model versioning is enabled; false
otherwise