public abstract class AbstractCallContextDependantController extends AbstractCsWidgetController
CallContextController. The CallContextController holds
global session state, and changes to this state may have knock on effects on other controllers. Subclasses of this
base class are automatically located by the DefaultCallContextController and notified of events dispatched from the
call context controller. Instances can then handle these by overriding the handleCallContextControllerEvent(de.hybris.platform.cscockpit.widgets.events.CallContextEvent)
method. The default behaviour is to dispatch an event on this controller when a call context controller event is
received.CONTROLLER_CONTEXT| Constructor and Description |
|---|
AbstractCallContextDependantController() |
| Modifier and Type | Method and Description |
|---|---|
protected CallContextController |
bindToCallContextController(CallContextController controller)
Attach a listener to the call context controller to receive events
|
protected CallContextController |
getCallContextController()
Get the call context controller
|
protected void |
handleCallContextControllerEvent(CallContextEvent event)
Called when an event is received from the call context controller.
|
void |
setCallContextController(CallContextController callContextController) |
getCockpitTypeService, getModelService, setCockpitTypeService, setModelServiceaddCockpitEventAcceptor, dispatchEvent, dispatchEvent, getAcceptors, removeCockpitEventAcceptor, setCockpitEventAcceptorspublic AbstractCallContextDependantController()
protected CallContextController getCallContextController()
public void setCallContextController(CallContextController callContextController)
protected CallContextController bindToCallContextController(CallContextController controller)
controller - the call context controller instance to attach toprotected void handleCallContextControllerEvent(CallContextEvent event)
event - the eventCopyright © 2018 SAP SE. All Rights Reserved.