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.
Attributes | Name and Description |
---|---|
|
caplin.element.Handler()
|
Attributes | Name and Description |
---|---|
|
void
initialise(caplin.element.Renderer renderer, Map attributes)
Allows the handler to perform any initialisation code on the renderer. |
►
caplin.element.Handler()
►
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.
caplin.element.Renderer | renderer | The renderer that is being initialised |
Map | attributes | Any configuration parameters for this handler. |