Web Client 4.2.3

Class UpdateItemInfo

Object
   |
   +--UpdateItemInfo

class UpdateItemInfo


Contains all the information related to an update of the field values for an item. It reports all the new and old values of the fields and allows to add extra fields to the update, though it does not allow to alter the values received from the Server.
If the involved table is a MetapushTable or a DynaMetapushTable, then the object behaves with a "COMMAND logic" and the old values for the current update are meant as relative to the same key. The above also holds for a NonVisualTable, if NonVisualTable.setCommandLogic() with a "true" argument has been called at initialization time.
Note: "COMMAND logic" behaviour usually comes with COMMAND mode subscription, but there is no strict constraint over this.
Defined in lspushpage.js


Constructor Summary
UpdateItemInfo ()
            Used by Lightstreamer to provide a value object to each call of the Table.onItemUpdate() event handler.
 
Method Summary
 void addField(<FieldDescriptor> field, <String> value, <boolean> remember)
           Operation method that adds an internally computed extra field to the fields received from the Server for an item.
 String getNewValue(<FieldDescriptor> field)
           Inquiry method that gets the new value for a specified field, as received from the Server with the current update or as previously set, in case an extra field is specified.
 Number getNumFields()
           Inquiry method that gets the number of fields received from the Server with the current update.
 String getOldValue(<FieldDescriptor> field)
           Inquiry method that gets the previous value for a specified field, after the reception of an update from the Server for an item.
 boolean isSnapshot()
           Inquiry method that asks whether the current update belongs to the item snapshot, i.e.
 boolean isValueChanged(<FieldDescriptor> field)
           Inquiry method that asks whether the value for a field has changed after the reception of an update from the Server for an item.

Constructor Detail

UpdateItemInfo

UpdateItemInfo()

Method Detail

addField

void addField(<FieldDescriptor> field, <String> value, <boolean> remember)

getNewValue

String getNewValue(<FieldDescriptor> field)

getNumFields

Number getNumFields()

getOldValue

String getOldValue(<FieldDescriptor> field)

isSnapshot

boolean isSnapshot()

isValueChanged

boolean isValueChanged(<FieldDescriptor> field)

Web Client 4.2.3

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