Class nnjl.mvc.AbstractAction
Defined in: nnjl.mvc.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
nnjl.mvc.AbstractAction(category)
Creates a new Action
|
| Field Attributes | Field Name and Description |
|---|---|
| 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