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 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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:
      Changes.stop()
    • startTransaction

      public void startTransaction()
      Deprecated.
      Description copied from interface: Changes
      Starts a new transaction.
      Specified by:
      startTransaction in interface Changes
      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 last startTransaction() or publishTransaction() call.
      Specified by:
      publishTransaction in interface Changes
      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 interface Changes
      See Also:
      Changes.start()
    • 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