HTML Client 5.0.1

Class PushPage

Object
   |
   +--PushPage

class PushPage


Facade class for the management of a front-end page enabled to request push data to Lightstreamer Server (we call such a page a push-enabled page, or a Push-page). Used to provide configuration settings, event handlers and operations for adding and removing data tables to the "running" tables set and managing data values received.
Exactly one PushPage instance should be bound to each Push-page instance at page loading. This should be accomplished, on each page, by creating and configuring a PushPage instance and then calling bind() on it in a static script. Each instance can then be accessed after page loading, to use operations and change settings.
Defined in lspushpage.js


Field Summary
 Context context
          Bean object that contains context properties for the page.
 
Constructor Summary
PushPage ()
            Creates an object to be bound to the page, to provide configuration settings, operations and event handlers for the management of the data tables defined in the page.
 
Method Summary
 void addScreenTableHelper(<ScreenTableHelper> screenTable)
           Operation method that provides a helper object that can be used by the framework in order to access all the HTML cells that belong to a screen table.
 Table addTable(<Table> tableSpec, <String> id)
           Operation method that adds a data table to the "running" tables set, by bringing it to the "running" state and associating it to a unique identifier.
 boolean bind()
           Initialization method that binds a PushPage instance with the page object.
 void cellMetapush(<String> tableId, <Number> row, <FieldDescriptor> field, <String> initValue, <String> initStylesheet, <String> pushedHtmlEnabled, <String> tagType, <String> updateProperty)
           Helper method that creates an HTML cell in the page.
 void cellOverwrite(<String> tableId, <ItemDescriptor> item, <FieldDescriptor> field, <String> initValue, <String> initStylesheet, <String> pushedHtmlEnabled, <String> tagType, <String> updateProperty)
           Helper method that creates an HTML cell in the page.
 void cellScroll(<String> tableId, <Number> row, <FieldDescriptor> field, <String> initValue, <String> initStylesheet, <String> pushedHtmlEnabled, <String> tagType, <String> updateProperty)
           Helper method that creates an HTML cell in the page.
 String createEngine(<String> applicationName, <String> path, <String> onSimilarEngineFound, <boolean> suppressDefaultStatusChangeHandler)
           Operation method that creates a hidden IFRAME hosted by this Push-Page and loads the client Engine page into it.
 Table getTable(<String> id)
           Inquiry method that returns a Table instance that is currently in the "running" tables set and is associated to a supplied identifier, if any.
 Map getTables()
           Inquiry method that returns a map containing all the Table instances for this PushPage that are currently in "running" state.
 Window getWindowReference()
           Inquiry method that returns the reference to the Window object relative to the HTML page where this instance of PushPage was created.
 boolean isMasterPushPage()
           Inquiry method that allows a page to know whether it is currently hosting the Engine page.
 void onClientAlert(<Number> code,<String> errorMex)
           Event handler that is called whenever a browser related problem arises.
 void onClientError(<String> errorMex)
           Event handler that is called whenever an unexpected condition prevents some library operation on this PushPage from working correctly.
 void onEngineCreation(<LightstreamerEngine> engine)
           Event handler that is called on a Master Push-Page, as a consequence of the createEngine() call, as soon as the Engine page has been created.
 void onEngineLost()
           Event handler that is called as soon as the Push-Page notices that the previously used reference to the LightstreamerEngine object bound to the Engine page can no longer be used.
 void onEngineReady(<LightstreamerEngine> engine)
           Event handler that is called as soon as the Push-page has created the Engine page (in case of a Master Push-Page) or has linked to the Engine page (in case of a non-Master Push-Page) AND the LightstreamerEngine object on the Engine page is ready to be used (that is, the onEngineCreation() event handler call on the Master Push-Page has returned).
 void onServerDeny(<Number> code, <String> message, <Table> affectedTable, <Number> refItemPos, <String> refItemName, <String> refKey)
           Event handler that is called when the Server notifies an error on a subscription/unsubscription request issued by this page on behalf of a table.
 Table removeTable(<String> id)
           Operation method that removes a data table that is currently in the "running" tables set and is associated with a supplied identifier, if any, by bringing it back to the "inactive" state.
 void seekEngine(<String> applicationName, <Window> ref)
           Operation method that allows any Push-Page that has not been elected as the Master Push-Page to link with an existing Engine page instance.
 void setCheckEngineTimeout(<Number> checkEngineTimeout)
           Setter method that sets the interval of the periodic check of the accessibility of the client Engine page.

Field Detail

context

Context context

Constructor Detail

PushPage

PushPage()

Method Detail

addScreenTableHelper

void addScreenTableHelper(<ScreenTableHelper> screenTable)

addTable

Table addTable(<Table> tableSpec, <String> id)

bind

boolean bind()

cellMetapush

void cellMetapush(<String> tableId, <Number> row, <FieldDescriptor> field, <String> initValue, <String> initStylesheet, <String> pushedHtmlEnabled, <String> tagType, <String> updateProperty)

cellOverwrite

void cellOverwrite(<String> tableId, <ItemDescriptor> item, <FieldDescriptor> field, <String> initValue, <String> initStylesheet, <String> pushedHtmlEnabled, <String> tagType, <String> updateProperty)

cellScroll

void cellScroll(<String> tableId, <Number> row, <FieldDescriptor> field, <String> initValue, <String> initStylesheet, <String> pushedHtmlEnabled, <String> tagType, <String> updateProperty)

createEngine

String createEngine(<String> applicationName, <String> path, <String> onSimilarEngineFound, <boolean> suppressDefaultStatusChangeHandler)

getTable

Table getTable(<String> id)

getTables

Map getTables()

getWindowReference

Window getWindowReference()

isMasterPushPage

boolean isMasterPushPage()

onClientAlert

void onClientAlert(<Number> code,<String> errorMex)

onClientError

void onClientError(<String> errorMex)

onEngineCreation

void onEngineCreation(<LightstreamerEngine> engine)

onEngineLost

void onEngineLost()

onEngineReady

void onEngineReady(<LightstreamerEngine> engine)

onServerDeny

void onServerDeny(<Number> code, <String> message, <Table> affectedTable, <Number> refItemPos, <String> refItemName, <String> refKey)

removeTable

Table removeTable(<String> id)

seekEngine

void seekEngine(<String> applicationName, <Window> ref)

setCheckEngineTimeout

void setCheckEngineTimeout(<Number> checkEngineTimeout)

HTML Client 5.0.1

Lightstreamer HTML Client API
Documentation generated by JSDoc on Tue May 22 11:46:54 2012