Caplin Trader 4.0.3

Interface: module:caplin/element/Handler

module:caplin/element/Handler

A Handler is used to trap specific user-gestures on a control and inform all registered listeners.

For example, module:caplin/element/handler/ClickHandler is used to trap the click event on a control and communicate it to all module:caplin/element/RendererEventListeners.

All Handler implementations are singletons.

Implementations:

Methods

initialise(renderer, attributes)

Allows the handler to perform any initialisation code on the renderer. This method is called after the renderer is bound to the view for the first time. Implementing this method is optional.
Parameters:
Name Type Description
renderer module:caplin/element/Renderer The renderer that is being initialised
attributes Map Any configuration parameters for this handler.
Implementations:
  • module:caplin/element/handler/grid/CombinedFilterHandler#initialise