Caplin Trader 4.8.0

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

finalise(renderer)

Allows the handler to perform tear-down on the renderer. This method is called after the renderer is unbound from the view.
Parameters:
Name Type Description
renderer module:caplin/element/Renderer The renderer that is being finalised.
Implementations:

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 object Any configuration parameters for this handler.
Implementations: