Caplin Trader 4.5.2

Class: module:caplin/grid/decorator/DropDecorator

module:caplin/grid/decorator/DropDecorator

Constructor

new module:caplin/grid/decorator/DropDecorator(config)

Constructs a caplin.grid.decorator.DropDecorator instance — end-users will never need to do this themselves since grids are fully constructed based on their XML definition files by the module:caplin/grid/GridComponentFactory class.

The drop decorator is used to allow receiving instruments that have been dragged onto a grid configured with this decorator from other grids or trade panels configured with the drag decorator. The drop decorator only makes sense where the grid rows are instruments that can be requested from the Liberator.

It ultimately passes the received instruments on to the GridView's receiveObjects method.

Extends:
Parameters:
Name Type Description
config Object config object
Implements:

Extends

Methods

canReceive()

Implements:
See:

canReceiveMultipleObjects()

Implements:
See:

canReceiveObjects()

Implements:
See:

disposeDropTarget()

Disposes the drop target
Inherited From:

getLastReceiveFailureMessage()

Implements:
See:

getSuccessMessage()

Implements:
See:

onClose()

Implements:
See:
  • module:caplin/grid/decorator/GridViewListener#onClose

onContainerHtmlRendered()

Implements:
See:
  • module:caplin/grid/decorator/GridViewListener#onContainerHtmlRendered

receiveObjects()

Implements:
See:

setDropTarget(component, config)

Sets the drop target
Parameters:
Name Type Description
component module:caplin/component/Component The component to be set as a drop target
config Object The drop decorator configuration object
Properties
Name Type Description
ddGroup String The logical name for the group of instruments that are accepted by the component.
Inherited From:

setGridView()

Implements:
See: