Class ChangesImpl
java.lang.Object
eu.mihosoft.vmf.runtime.core.internal.ChangesImpl
- All Implemented Interfaces:
Changes
@Deprecated public class ChangesImpl extends java.lang.Object implements Changes
Deprecated.
Don't rely on this API. Seriously, don't rely on it!
-
Constructor Summary
Constructors Constructor Description ChangesImpl()
Deprecated. -
Method Summary
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 lastChanges.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 laststartTransaction()
orpublishTransaction()
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 lastChanges.start()
call.
-
Constructor Details
-
ChangesImpl
public ChangesImpl()Deprecated.
-
-
Method Details
-
setModel
Deprecated. -
start
public void start()Deprecated.Description copied from interface:Changes
Starts recording changes. Previously recorded changes will be removed (also removes transactions).- Specified by:
start
in interfaceChanges
- See Also:
Changes.stop()
-
startTransaction
public void startTransaction()Deprecated.Description copied from interface:Changes
Starts a new transaction.- Specified by:
startTransaction
in interfaceChanges
- See Also:
Transaction
,Changes.publishTransaction()
-
publishTransaction
public void publishTransaction()Deprecated.Description copied from interface:Changes
Publishes a transaction that consists of all changes since the laststartTransaction()
orpublishTransaction()
call.- Specified by:
publishTransaction
in interfaceChanges
- See Also:
Transaction
,Changes.startTransaction()
-
stop
public void stop()Deprecated.Description copied from interface:Changes
Stops recording changes. Unpublished transactions will be published.- Specified by:
stop
in interfaceChanges
- See Also:
Changes.start()
-
all
Deprecated.Description copied from interface:Changes
Returns all changes to the model (observable collection) that were recorded since the lastChanges.start()
call.- Specified by:
all
in interfaceChanges
- Returns:
- all changes to the model (observable collection) that were
recorded since the last
Changes.start()
call
-
transactions
Deprecated.Description copied from interface:Changes
Returns all model transactions (observable collection) that were published since the lastChanges.start()
call.- Specified by:
transactions
in interfaceChanges
- Returns:
- all model transactions (observable collection)
-
clear
public void clear()Deprecated.Description copied from interface:Changes
Removes all recorded changes (also removes transactions). -
addListener
Deprecated.Description copied from interface:Changes
Adds the specified change listener. Listeners will be notified about changes regardless of whether change recording is enabled. This allows to react to and/or undo specific changes without the overhead of storing all previous events in a collection. The listener registers with all objects of the current object graph.- Specified by:
addListener
in interfaceChanges
- Parameters:
l
- the listener to add- Returns:
- a subscription which allows to unsubscribe the specified listener
-
addListener
Deprecated.Description copied from interface:Changes
Adds the specified change listener. Listeners will be notified about changes regardless of whether change recording is enabled. This allows to react to and/or undo specific changes without the overhead of storing all previous events in a collection. Optionally the listener registers with all objects of the current object graph.- Specified by:
addListener
in interfaceChanges
- Parameters:
l
- the listher to addrecursive
- determines whether to add the listener recuirsively to all objects of the current object graph- Returns:
- a subscription which allows to unsubscribe the specified listener
-
modelVersion
Deprecated.Description copied from interface:Changes
Returns the model version.- Specified by:
modelVersion
in interfaceChanges
- Returns:
- model version
-
enableModelVersioning
public void enableModelVersioning()Deprecated. -
disableModelVersioning
public void disableModelVersioning()Deprecated. -
isModelVersioningEnabled
public boolean isModelVersioningEnabled()Deprecated.Description copied from interface:Changes
Indicates whether model versioning is enabled.- Specified by:
isModelVersioningEnabled
in interfaceChanges
- Returns:
true
if model versioning is enabled;false
otherwise
-