Caplin Trader 4.0.3

Interface: module:caplin/workbench/model/WorkbenchEventListener

module:caplin/workbench/model/WorkbenchEventListener

A WorkbenchEventListener represents an interface that interested parties should use in conjunction with the module:caplin/core/event/EventHub to publish events that will be logged within a workbench via the module:caplin/workbench/WorkbenchEventLogger
Implementations:
  • module:caplin/layout/workbench/LayoutManagerPM~LayoutManagerPM
  • module:caplin/workbench/model/EventLogPM~EventLogPM

Methods

logEvent(sEventName, sDirection, vData)

Logs an event to the EventHub, which will be displayed in the WorkbenchEventLogger if it's present.
Parameters:
Name Type Description
sEventName String The name of the event.
sDirection String The direction of the event (either "send" or "receive")
vData Variant The data to be displayed (initially collapsed in the WorkbenchEventLogger). If this is a Map, this will be expandable within the WorkbenchEventLogger
Implementations:
  • module:caplin/workbench/model/EventLogPM~EventLogPM#logEvent