The drag decorator is used to allow the dragging of instruments from within grids configured with the drag
decorator, to other grids or trade panels configured with the drop decorator. The drag decorator only makes sense
where the grid rows are instruments that can be requested from the Liberator. For this to work the
caplin.grid.GridRowModel or caplin.grid.GridDataProvider that is
providing the data, must correctly implement the
caplin.grid.GridRowModel#getSubjectId method or pass the sSubjectId
parameter within the
caplin.grid.GridDataProviderListener#onRecordAdded callback, as
appropiate.
For the drag decorator to be useful, some other grids must be configured with a drop decorator so that the instruments can dropped somewhere. This functionality is presently only available within legacy grids, but will also be made available within the new caplin.grid package at some future point.
Attributes | Name and Description |
---|---|
|
caplin.grid.decorator.DragDecorator(Object mConfig)
Constructs a |
►
caplin.grid.decorator.DragDecorator(Object mConfig)
Constructs a caplin.grid.decorator.DragDecorator
instance — end-users will never need to do
this themselves since grids are fully constructed based on their XML definition files by the
caplin.grid.GridComponentFactory class.
Object | mConfig | config object |