Constructor
new module:caplin/watchlist/sljs/WatchlistGridDataProvider()
Methods
-
addRow(subject, indexopt)
-
Add a row to this watchlist grid.
Parameters:
Name Type Attributes Description subject
String The RTTP subject name of the instrument to add. index
number <optional>
The index to insert the new objects at. If not included, objects will be appended to the end of the watchlist. -
addRows(subjects, indexopt)
-
Add a number of rows to this watchlist grid.
Parameters:
Name Type Attributes Description subjects
Array The RTTP subject names of the instruments to add. index
number <optional>
The index to insert the new objects at. If not included, objects will be appended to the end of the watchlist. -
canReceive()
-
canReceiveMultipleObjects()
-
canReceiveObjects()
-
configureDataProvider(xmlConfigurationNode, isDataProviderDefinedByParent)
-
Extract the watchlist ID from the provided xml node. Create a new xml configuration node with the subject obtained from the watchlist service and pass that on to the underlying data provider's configureDataProvider() method
Parameters:
Name Type Description xmlConfigurationNode
Element Access to the XML node that contains any configuration information the data provider needs to configure itself. isDataProviderDefinedByParent
boolean Informs the data provider whether its configuration came via inheritance, or was configured locally — this will affect how the data provider should behave when its module:caplin/grid/GridDataProvider#getSerializedState
method is invoked. -
getLastReceiveFailureMessage()
-
getSuccessMessage()
-
onOpen(width, height)
-
Called when the view is opened.
Parameters:
Name Type Description width
int the width of the grid. height
int the height of the grid. -
receiveObjects()
-
removeRow(subject)
-
Remove a row from this watchlist grid.
Parameters:
Name Type Description subject
String The RTTP subject name of the instrument to remove. -
removeRows(subjects)
-
Remove a number of rows from this watchlist grid.
Parameters:
Name Type Description subjects
Array An array of RTTP subject names of the instruments to remove. -
resumeUpdates()
-
setGridView()
-
terminateUpdates()