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