Web Client 4.2.3

Class DynaScrollTable

Object
   |
   +--Table
         |
         +--VisualTable
               |
               +--DynaScrollTable

class DynaScrollTable
extends VisualTable


A data table that can be fed with real-time data delivered by Lightstreamer Server and displayed into a screen table in such a way that new updates add new rows to the page. The class contains the subscription details and the event handlers needed to allow Lightstreamer to display the real-time data.
A screen table suitable for the visualization of pushed values is dynamically maintained by Lightstreamer, starting from an HTML hidden template row, containing cells. The template row can be provided as any HTML element owning the "source='Lightstreamer'" special attribute, while the element "ID" attribute defines the screen table id. The association is made when the data table is brought to the "running" state, through the identifier supplied to PushPage.addTable(), that must match the screen table id. The contained cells are defined as DIV or SPAN elements owning the "source='Lightstreamer'" special attribute, together with a "field" attribute.
For each pushed update, a new row is cloned from the hidden template and attached after it; then, each value is displayed in a cell inside the new row that is associated to the involved field. The cell/field association depends on the value specified in the "field" attribute of each cell, which should be a valid field descriptor. Only one cell for each field is supported in the template.
Note: The template element can contain an arbitrary HTML structure and should contain HTML cells to be used to display the row field values. However, it should not contain elements to which an ID has been assigned, because the elements will be cloned and the HTML specification prescribes that an ID must be unique in the document. (The ID of the template element, required by Lightstreamer, is not cloned).
More visualization actions can be performed through the provided event handlers.
Note: Using DynaScrollTable requires that the client browser supports DOM level 1 functions.
See:

Defined in lspushpage.js


Constructor Summary
DynaScrollTable (<GroupDescriptor> tGroup, <SchemaDescriptor> tSchema, <String> tSubscriptionMode)
            Creates an object to be used to describe a data table whose values should be displayed and cumulated into dynamically generated HTML rows.
 
Method Summary
 Number getMaxDynaRows()
           Inquiry method that gets the maximum number of rows allowed in the data table.
 void onChangingValues(<DOMElement> domNode, <VisualUpdateInfo> updateInfo)
           Event handler that is called by Lightstreamer each time a new update is received, so that a new row enters the data table.
 void setAutoScroll(<String> type, <String> elementId)
           Setter method that enables or disables the automatic adjustment of the screen table scrollbars at each new update.
 void setMaxDynaRows(<Number> maxDynaRows)
           Setter method that sets the maximum number of rows allowed in the data table.
 void setUpwardScroll(<boolean> isUpwardScroll)
           Setter method that enables or disables upward scroll.
 
Methods inherited from class VisualTable
setPushedHtmlEnabled, isPushedHtmlEnabled, setClearOnDisconnected, setClearOnRemove, setClearOnAdd, showValues
   
Methods inherited from class Table
setItemsRange, setSnapshotRequired, setRequestedMaxFrequency, setRequestedBufferSize, setSelector, getId, getClassName, onItemUpdate, onLostUpdates, onEndOfSnapshot, onStart
 

Constructor Detail

DynaScrollTable

DynaScrollTable(<GroupDescriptor> tGroup, <SchemaDescriptor> tSchema, <String> tSubscriptionMode)

Method Detail

getMaxDynaRows

Number getMaxDynaRows()

onChangingValues

void onChangingValues(<DOMElement> domNode, <VisualUpdateInfo> updateInfo)

setAutoScroll

void setAutoScroll(<String> type, <String> elementId)

setMaxDynaRows

void setMaxDynaRows(<Number> maxDynaRows)

setUpwardScroll

void setUpwardScroll(<boolean> isUpwardScroll)

Web Client 4.2.3

Lightstreamer Web Client API
Documentation generated by JSDoc on Wed Mar 5 11:49:21 2008