Class ChangesImpl

java.lang.Object
eu.mihosoft.vmf.runtime.core.internal.ChangesImpl
All Implemented Interfaces:
Changes

@Deprecated public class ChangesImpl extends Object implements Changes
Deprecated.
Don't rely on this API. Seriously, don't rely on it!
  • Constructor Details

    • ChangesImpl

      public ChangesImpl()
      Deprecated.
  • Method Details

    • setModel

      public void setModel(VObject model)
      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 interface Changes
      See Also:
    • startTransaction

      public void startTransaction()
      Deprecated.
      Description copied from interface: Changes
      Starts a new transaction.
      Specified by:
      startTransaction in interface Changes
      See Also:
    • publishTransaction

      public void publishTransaction()
      Deprecated.
      Description copied from interface: Changes
      Publishes a transaction that consists of all changes since the last startTransaction() or publishTransaction() call.
      Specified by:
      publishTransaction in interface Changes
      See Also:
    • stop

      public void stop()
      Deprecated.
      Description copied from interface: Changes
      Stops recording changes. Unpublished transactions will be published.
      Specified by:
      stop in interface Changes
      See Also:
    • all

      public eu.mihosoft.vcollections.VList<Change> all()
      Deprecated.
      Description copied from interface: Changes
      Returns all changes to the model (observable collection) that were recorded since the last Changes.start() call.
      Specified by:
      all in interface Changes
      Returns:
      all changes to the model (observable collection) that were recorded since the last Changes.start() call
    • transactions

      public eu.mihosoft.vcollections.VList<Transaction> transactions()
      Deprecated.
      Description copied from interface: Changes
      Returns all model transactions (observable collection) that were published since the last Changes.start() call.
      Specified by:
      transactions in interface Changes
      Returns:
      all model transactions (observable collection)
    • clear

      public void clear()
      Deprecated.
      Description copied from interface: Changes
      Removes all recorded changes (also removes transactions).
      Specified by:
      clear in interface Changes
    • addListener

      public vjavax.observer.Subscription addListener(ChangeListener l)
      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 interface Changes
      Parameters:
      l - the listener to add
      Returns:
      a subscription which allows to unsubscribe the specified listener
    • addListener

      public vjavax.observer.Subscription addListener(ChangeListener l, boolean recursive)
      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 interface Changes
      Parameters:
      l - the listher to add
      recursive - 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

      public ModelVersion modelVersion()
      Deprecated.
      Description copied from interface: Changes
      Returns the model version.
      Specified by:
      modelVersion in interface Changes
      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 interface Changes
      Returns:
      true if model versioning is enabled; false otherwise