public interface ModelService
add
or
remove
ModelListener
. (only available inside java-client!)
Example:
servicesBroker.See usages for existing application types.getService
(ModelService
.class).addModelListener
(MyModel.TYPE, new MyModelListener());
ModelListener
,
ServicesBroker.getService(Class)
Modifier and Type | Method and Description |
---|---|
<T> void |
addModelListener(ModelType<T> type,
ModelListener<T> listener)
Adds the given
listener to be notified on every model change. |
<T> void |
removeModelListener(ModelType<T> type,
ModelListener<T> listener)
Removes the given
listener . |
<T> void addModelListener(ModelType<T> type, ModelListener<T> listener)
listener
to be notified
on every model change.T
- model interface; ensures type safety between model and listener.type
- model type.listener
- to add.<T> void removeModelListener(ModelType<T> type, ModelListener<T> listener)
listener
. Calls with unknown listeners will be ignored.T
- model interface; ensures type safety between model and listener.type
- model type.listener
- to remove.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500