Class Index | File Index

Classes


Class nnjl.mvc.AbstractAction


Defined in: nnjl.mvc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new Action
Field Summary
Field Attributes Field Name and Description
 
 
 
Method Summary
Method Attributes Method Name and Description
 
Return the displayer of this action
 
process(workdata, callback)
 
requestNetwork(url, parameters, workdata, waitMessage)
Request data to the server if it is network data service.
 
responseNetwork(response, workdata)
this operation should be overwrited to catch the response object
Class Detail
nnjl.mvc.AbstractAction(category)
Creates a new Action
Parameters:
{string} category
The name of the category associated to the logger
Field Detail
displayer

logger

manager
Method Detail
getDisplayer()
Return the displayer of this action

{string|undefined} process(workdata, callback)
Parameters:
{nnjl.mvc.workdata.WorkData} workdata
context information
{function} callback Optional
callback function to be executed when action finish
Returns:
{string|undefined} The next displayer, if undefine, nextdisplayer will be the action default displayer

requestNetwork(url, parameters, workdata, waitMessage)
Request data to the server if it is network data service. If you call to this method you have to overwirte the responseNetwork(response, workdata) operations in this action to play with the response
Parameters:
{string} url
full path url to the server
{Object} parameters
object to be translated to JSON and sended in the request body
{nnjl.mvc.workdata.WorkData} workdata
workdata context to play in the response
{String} waitMessage Optional
Wait message to be shown on the screen until the response

responseNetwork(response, workdata)
this operation should be overwrited to catch the response object
Parameters:
{Object} response
The JSON object that come in the response
{nnjl.mvc.workdata.WorkData} workdata
workdata context to play in the response

Documentation generated by JsDoc Toolkit 2.3.2 on Wed Sep 29 2010 11:46:26 GMT+0200 (CEST)