Caplin Trader 4.7.1

Class: module:caplin/element/handler/RemoveGridRowOnClickHandler

module:caplin/element/handler/RemoveGridRowOnClickHandler

Constructor

new module:caplin/element/handler/RemoveGridRowOnClickHandler()

This handler traps click events and passes a 'removeRowClick' the module:caplin/element/RendererEventListener.

RemoveGridRowOnClickHandler is a flyweight singleton, and therefore this constructor should never be invoked directly.

Instead, it is instantiated by the RendererFactory, which reads RendererType specifications from XML and instantiates the handlers by name.

Extends:

Extends

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.
Inherited From:

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.
Inherited From:

onclick(domEvent, renderer) → {Map}

Traps the onclick event and returns a 'removeRowClick' event for passing up to the RendererEventListener.

All the functions that begin with on are assumed to be event handler functions, and are attached to DOM elements by reflection.

Parameters:
Name Type Description
domEvent Object The DOM event
renderer Object The renderer
Returns:
A 'removeRowClick' event
Type
Map

toString() → {String}

Returns a human-readable string representation of the handler, which is useful for debugging.
Returns:
The string representation
Type
String