X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.TaskMgr.html
diff --git a/docs/output/Ext.TaskMgr.html b/docs/output/Ext.TaskMgr.html
index f1d2322f..5893de7c 100644
--- a/docs/output/Ext.TaskMgr.html
+++ b/docs/output/Ext.TaskMgr.html
@@ -1,20 +1,5 @@
-
-
-
Class Ext.TaskMgr
-
- Package: | Ext |
- Defined In: | TaskMgr.js |
- Class: | TaskMgr |
- Extends: | Object |
-
-
- A static
Ext.util.TaskRunner instance that can be used to start and stop arbitrary tasks. See
-
Ext.util.TaskRunner for supported methods and task config properties.
+
A static
Ext.util.TaskRunner instance that can be used to start and stop arbitrary tasks. See
+
Ext.util.TaskRunner for supported methods and task config properties.
// Start a simple clock task that updates a div once per second
var task = {
run: function(){
@@ -22,14 +7,29 @@
},
interval: 1000 //1 second
}
-Ext.TaskMgr.start(task);
This class is a singleton and cannot be created directly.
-
-
-
-
Public Properties
-
This class has no public properties.
-
Public Methods
-
This class has no public methods.
-
Public Events
-
This class has no public events.
-
\ No newline at end of file
+Ext.TaskMgr.start(task);
+
See the start method for details about how to configure a task object.
This class is a singleton and cannot be created directly.Public Properties
This class has no public properties.
Public Methods
|
| start( Object task )
+ :
+ ObjectStarts a new task. Starts a new task. Parameters:task : ObjectA config object that supports the following properties:
+run : FunctionThe function to execute each time the task is invoked. The
+function will be called at each interval and passed the args argument if specified, and the
+current invocation count if not.
+ If a particular scope (this reference) is required, be sure to specify it using the scope argument.
+ Return false from this function to terminate the task.
+interval : NumberThe frequency in milliseconds with which the task
+should be invoked.
+args : Array(optional) An array of arguments to be passed to the function
+specified by run . If not specified, the current invocation count is passed.
+scope : Object(optional) The scope (this reference) in which to execute the
+run function. Defaults to the task config object.
+duration : Number(optional) The length of time in milliseconds to invoke
+the task before stopping automatically (defaults to indefinite).
+repeat : Number(optional) The number of times to invoke the task before
+stopping automatically (defaults to indefinite).
+
+ Before each invocation, Ext injects the property taskRunCount into the task object so
+that calculations based on the repeat count can be performed. Returns: | TaskRunner |
| stop( Object task )
+ :
+ ObjectStops an existing running task. Stops an existing running task. Parameters:task : ObjectThe task to stop Returns: | TaskRunner |
| stopAll()
+ :
+ voidStops all tasks that are currently running. Stops all tasks that are currently running. | TaskRunner |
Public Events
This class has no public events.
\ No newline at end of file