/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_TaskMgr({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.util.TaskRunner","uses":[],"html":"

Hierarchy

Files

A static Ext.util.TaskRunner instance that can be used to start and stop arbitrary tasks. See\nExt.util.TaskRunner for supported methods and task config properties.

\n\n
// Start a simple clock task that updates a div once per second\nvar task = {\n    run: function(){\n        Ext.fly('clock').update(new Date().format('g:i:s A'));\n    },\n    interval: 1000 //1 second\n}\nExt.TaskMgr.start(task);\n
\n\n\n

See the start method for details about how to configure a task object.

\n\n
Defined By

Methods

...
\n

Parameters

  • interval : Number (optional)

    The minimum precision in milliseconds supported by this TaskRunner instance\n(defaults to 10)

    \n

Returns

Starts a new task. ...

Starts a new task.

\n

Parameters

  • task : Object

    A config object that supports the following properties:

      \n
    • run : Function

      The function to execute each time the task is invoked. The\nfunction will be called at each interval and passed the args argument if specified, and the\ncurrent invocation count if not.

      \n

      If a particular scope (this reference) is required, be sure to specify it using the scope argument.

      \n

      Return false from this function to terminate the task.

    • \n
    • interval : Number
      The frequency in milliseconds with which the task\nshould be invoked.
    • \n
    • args : Array
      (optional) An array of arguments to be passed to the function\nspecified by run. If not specified, the current invocation count is passed.
    • \n
    • scope : Object
      (optional) The scope (this reference) in which to execute the\nrun function. Defaults to the task config object.
    • \n
    • duration : Number
      (optional) The length of time in milliseconds to invoke\nthe task before stopping automatically (defaults to indefinite).
    • \n
    • repeat : Number
      (optional) The number of times to invoke the task before\nstopping automatically (defaults to indefinite).
    • \n

    \n\n\n

    Before each invocation, Ext injects the property taskRunCount into the task object so\nthat calculations based on the repeat count can be performed.

    \n\n

Returns

  • Object

    The task

    \n
Stops an existing running task. ...

Stops an existing running task.

\n

Parameters

  • task : Object

    The task to stop

    \n

Returns

  • Object

    The task

    \n
Stops all tasks that are currently running. ...

Stops all tasks that are currently running.

\n
","superclasses":["Ext.util.TaskRunner"],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"TaskMgr.html#Ext-TaskMgr","filename":"TaskMgr.js"}],"linenr":156,"members":{"property":[],"cfg":[],"css_var":[],"method":[{"tagname":"method","owner":"Ext.util.TaskRunner","meta":{},"name":"constructor","id":"method-constructor"},{"tagname":"method","owner":"Ext.util.TaskRunner","meta":{},"name":"start","id":"method-start"},{"tagname":"method","owner":"Ext.util.TaskRunner","meta":{},"name":"stop","id":"method-stop"},{"tagname":"method","owner":"Ext.util.TaskRunner","meta":{},"name":"stopAll","id":"method-stopAll"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.TaskMgr","singleton":true,"override":null,"inheritdoc":null,"id":"class-Ext.TaskMgr","mixins":[],"mixedInto":[]});