Caplin Trader 4.0.3

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

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

onclick(oDomEvent, oRenderer) → {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
oDomEvent Object The DOM event
oRenderer 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