Package com._1c.g5.v8.dt.dcs.ui
Class BmDcsModelChangedNotifier
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.ui.BmDcsModelChangedNotifier
-
- All Implemented Interfaces:
IBmAsyncEventListener
,IDcsModelChangedNotifier
public class BmDcsModelChangedNotifier extends Object implements IBmAsyncEventListener, IDcsModelChangedNotifier
The notifier ofIDcsModelChangedListener
based on BM events.
-
-
Constructor Summary
Constructors Constructor Description BmDcsModelChangedNotifier(IBmModel bmModel)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addModelChangedListener(IDcsModelChangedListener listener)
Adds the given listener to notify.void
dispose()
Disposed the notifier.void
handleAsyncEvent(BmEvent bmEvent)
Invoked to notify about a BM event.void
removeModelChangedListener(IDcsModelChangedListener listener)
Removes the given listener.
-
-
-
Constructor Detail
-
BmDcsModelChangedNotifier
public BmDcsModelChangedNotifier(IBmModel bmModel)
Creates a new instance.- Parameters:
bmModel
- the BM model, cannot benull
.
-
-
Method Detail
-
addModelChangedListener
public void addModelChangedListener(IDcsModelChangedListener listener)
Description copied from interface:IDcsModelChangedNotifier
Adds the given listener to notify.- Specified by:
addModelChangedListener
in interfaceIDcsModelChangedNotifier
- Parameters:
listener
- the listener, cannot benull
.
-
removeModelChangedListener
public void removeModelChangedListener(IDcsModelChangedListener listener)
Description copied from interface:IDcsModelChangedNotifier
Removes the given listener.- Specified by:
removeModelChangedListener
in interfaceIDcsModelChangedNotifier
- Parameters:
listener
- the listener, cannot benull
.
-
dispose
public void dispose()
Description copied from interface:IDcsModelChangedNotifier
Disposed the notifier.- Specified by:
dispose
in interfaceIDcsModelChangedNotifier
-
handleAsyncEvent
public void handleAsyncEvent(BmEvent bmEvent)
Description copied from interface:IBmAsyncEventListener
Invoked to notify about a BM event.- Specified by:
handleAsyncEvent
in interfaceIBmAsyncEventListener
- Parameters:
bmEvent
- the BM event. Nevernull
.
-
-