Interface
caplin.element

Handler

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

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

All Handler implementations are singletons.

Constructor Summary

Attributes Name and Description
caplin.element.Handler()

Method Summary

Attributes Name and Description
void initialise(caplin.element.Renderer renderer, Map attributes)

Allows the handler to perform any initialisation code on the renderer.

Constructor Detail

caplin.element.Handler()

Method Detail

void initialise(caplin.element.Renderer renderer, Map 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
caplin.element.Renderer renderer The renderer that is being initialised
Map attributes Any configuration parameters for this handler.