-
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 UnitonModelReplaced(TModel model, String tag)Called when the model has been replaced. abstract UnitonModelUpdated(ModelChangedArgs args, String tag)Called when a property within the model has been updated. -
-
Method Detail
-
onModelReplaced
abstract Unit onModelReplaced(TModel model, String tag)
Called when the model has been replaced.
- Parameters:
model- The modeltag- 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.
-
-
-
-