Package 

Interface ISingletonModelStoreChangeHandler


  • 
    public interface ISingletonModelStoreChangeHandler<TModel extends Model>
    
                        

    A handler interface for ISingletonModelStore.subscribe. Implement this interface to subscribe to model change events for a specific model store.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onModelReplaced(TModel model, String tag) Called when the model has been replaced.
      abstract Unit onModelUpdated(ModelChangedArgs args, String tag) Called when a property within the model has been updated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onModelReplaced

         abstract Unit onModelReplaced(TModel model, String tag)

        Called when the model has been replaced.

        Parameters:
        model - The model
        tag - The tag which identifies how/why the model was replaced.
      • onModelUpdated

         abstract Unit onModelUpdated(ModelChangedArgs args, String tag)

        Called when a property within the model has been updated. This callback wraps IModelChangedHandler.onChanged so users of the model store does not need to manage subscriptions to the individual Model within the store.

        Parameters:
        args - The model changed arguments.
        tag - The tag which identifies how/why the model was updated.