Class to automate data exchange between client and server
read write startup
Class to automate data exchange between client and server | |
Sends the appropriate values to the appropriate linked element | |
Sets the protocol to be used by this DataSource | |
If the user of DataSource will communicate to server using a standard format, that is, the same class for startup, read, write and remove and that class has these methods, one can call setServerClass method instead of setStartupMethod, setReadMethod, setWriteMethod or setRemoveMethod; setServerClass will do that, appending the correct string to the parameter passed. | |
Sets the method that will be called when performed a write call | |
Sets the method that will be called when performed a read call | |
Sets the method that will be called when performed a remove call | |
Sets the method that will be called when a startup is performed | |
Tells the Connector to put its message on the specified Progress Holder | |
Alias of setProgressHolder | |
Tells the Connector which messages are to be shown when calling read | |
Tells the Connector which messages are to be shown when calling write | |
Tells the Connector which messages are to be shown when calling remove | |
Link Object to this DataSource | |
Unlink Object from this DataSource | |
Performs a startup call. | |
Method that connects to the server, gets the data and populate previous linked elements | |
Method that sweepOut all linked elements data, connects to the server and sends the data to the server | |
Method that connects to the server and execute remove method | |
Handler for incomming connections called from read method | |
Handler for incomming connections called from write method | |
Handler for incomming connections called from remove method | |
Handler for incomming connections called from startup method |
p.setServerClass = function ( className )
If the user of DataSource will communicate to server using a standard format, that is, the same class for startup, read, write and remove and that class has these methods, one can call setServerClass method instead of setStartupMethod, setReadMethod, setWriteMethod or setRemoveMethod; setServerClass will do that, appending the correct string to the parameter passed.
class | The class name (how it is handled by the server) |
p.setReadMessages = function ( messages )
Tells the Connector which messages are to be shown when calling read
messages | Array with messages. There are 3 possible messages: |
p.setWriteMessages = function ( messages )
Tells the Connector which messages are to be shown when calling write
messages | Array with messages. There are 3 possible messages: |
p.setRemoveMessages = function ( messages )
Tells the Connector which messages are to be shown when calling remove
messages | Array with messages. There are 3 possible messages: |
p.link = function( obj, name, event )
Link Object to this DataSource
Upon calling this method, one attach an element to the instantiated DataSource Object on the specified event
obj | The Object that implements DataLayer methods |
name | The name to be used on data exchange with server |
event | The event (or array of events) that will use this object. Default to all |
p._writeHandler = function ()
Handler for incomming connections called from write method
Protected
p._removeHandler = function ()
Handler for incomming connections called from remove method
Protected
p._startupHandler = function ()
Handler for incomming connections called from startup method
Protected
Sends the appropriate values to the appropriate linked element
p.populate = function ( data, event )
Sets the protocol to be used by this DataSource
p.setProtocol = function ( protocol, url )
If the user of DataSource will communicate to server using a standard format, that is, the same class for startup, read, write and remove and that class has these methods, one can call setServerClass method instead of setStartupMethod, setReadMethod, setWriteMethod or setRemoveMethod; setServerClass will do that, appending the correct string to the parameter passed.
p.setServerClass = function ( className )
Sets the method that will be called when a startup is performed
p.setStartupMethod = function ( method )
Sets the method that will be called when performed a read call
p.setReadMethod = function ( method )
Sets the method that will be called when performed a write call
p.setWriteMethod = function ( method )
Sets the method that will be called when performed a remove call
p.setRemoveMethod = function ( method )
Tells the Connector to put its message on the specified Progress Holder
p.setProgressHolder = function( holder )
Tells the Connector which messages are to be shown when calling read
p.setReadMessages = function ( messages )
Method that connects to the server, gets the data and populate previous linked elements
p.read = function( data )
Tells the Connector which messages are to be shown when calling write
p.setWriteMessages = function ( messages )
Method that sweepOut all linked elements data, connects to the server and sends the data to the server
p.write = function( data )
Tells the Connector which messages are to be shown when calling remove
p.setRemoveMessages = function ( messages )
Method that connects to the server and execute remove method
p.remove = function( data )
Link Object to this DataSource
p.link = function( obj, name, event )
Unlink Object from this DataSource
p.unlink = function( name, event )
Performs a startup call.
p.startup = function ( data )
Handler for incomming connections called from read method
p._readHandler = function ()
Handler for incomming connections called from write method
p._writeHandler = function ()
Handler for incomming connections called from remove method
p._removeHandler = function ()
Handler for incomming connections called from startup method
p._startupHandler = function ()