-
public interface IModelStoreChangeHandler<TModel extends Model>A handler interface for IModelStore.subscribe. Implement this interface to subscribe to model change events for a specific model store.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonModelAdded(TModel model, String tag)Called when a model has been added to the model store. abstract UnitonModelUpdated(ModelChangedArgs args, String tag)Called when a model has been updated. abstract UnitonModelRemoved(TModel model, String tag)Called when a model has been removed from the model store. -
-
Method Detail
-
onModelAdded
abstract Unit onModelAdded(TModel model, String tag)
Called when a model has been added to the model store.
- Parameters:
model- The model that has been added.tag- The tag which identifies how/why the model was added.
-
onModelUpdated
abstract Unit onModelUpdated(ModelChangedArgs args, String tag)
Called when a model has been updated. This callback wraps IModelChangedHandler.onChanged so users of the model store does not need to manage subscriptions to each individual Model within the store.
- Parameters:
args- The model changed arguments.tag- The tag which identifies how/why the model was updated.
-
onModelRemoved
abstract Unit onModelRemoved(TModel model, String tag)
Called when a model has been removed from the model store.
- Parameters:
model- The model that has been removed.tag- The tag which identifies how/why the model was removed.
-
-
-
-