Class Index | File Index

Classes


Class nnjl.mvc.Manager


Defined in: nnjl.mvc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
nnjl.mvc.Manager(category)
Creates a new Logger for a category
Field Summary
Field Attributes Field Name and Description
 
ds
 
 
 
Method Summary
Method Attributes Method Name and Description
 
createScheduler(interval, action, executeNow, executeNow)
create a new scheduler/periodicalexecuter with a defined name
 
executeAction(actionName, workdata, callback)
Execute an action
 
executeActionHandler(evt, actionName, workdata)
Excute an action associated as an event handler
 
return if an scheduler exists or not
 
 
 
Initialize LicurgoService
 
loadDisplayer(displayer, workdata, putOnHistory)
Load a displayer
 
loadDisplayerOn(displayer, workdata, elementId, putOnHistory)
Load a displayer on a especified element
 
Stop and remove an scheduler object by its name
 
setServerPath(serverPath)
Class Detail
nnjl.mvc.Manager(category)
Creates a new Logger for a category
Parameters:
{string} category
The name of the category associated to the logger
Field Detail
ds

logger

serverPath

sourcePath
Method Detail
{PeriodicalExecuter} createScheduler(interval, action, executeNow, executeNow)
create a new scheduler/periodicalexecuter with a defined name
Parameters:
{numeric} interval
{function} action
{boolean} executeNow Optional
If true the scheduler don't wait first interval to be executed.
executeNow
Returns:
{PeriodicalExecuter} object to stop the scheduler

executeAction(actionName, workdata, callback)
Execute an action
Parameters:
{string} actionName
{WorkData} workdata Optional
Workdata to use in the action. if there is no workdata a new one will be created
{function} callback Optional
callback function to be executed when the action process end

executeActionHandler(evt, actionName, workdata)
Excute an action associated as an event handler
Parameters:
{Event} evt
{String} actionName
{WorkData} workdata Optional
Workdata to use in the action. if there is no workdata a new one will be created

{boolean} existsScheduler(name)
return if an scheduler exists or not
Parameters:
{string} name
Returns:
{boolean} true if scheduler exists

getDatasource()
Returns:
Get the licurgo datasource. If datsource is not initialized, this method initialize it.

{string} getServerPath()
Returns:
{string} serverpath

initLicurgo()
Initialize LicurgoService

loadDisplayer(displayer, workdata, putOnHistory)
Load a displayer
Parameters:
{string} displayer
name
{nnjl.mvc.workdata.WorkData} workdata
{boolean} putOnHistory Optional
if false, displayer will not be stored on history

loadDisplayerOn(displayer, workdata, elementId, putOnHistory)
Load a displayer on a especified element
Parameters:
{string} displayer
name
{nnjl.mvc.workdata.WorkData} workdata
{string} elementId
Element where the displayer will be rendered
{boolean} putOnHistory Optional
if false, displayer will not be stored on history

removeScheduler(name)
Stop and remove an scheduler object by its name
Parameters:
{string} name

setServerPath(serverPath)
Parameters:
{String} serverPath

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