Class: Task

system.process. Task


new Task()

An abstract class to create a set of complex commands or actions.

A Task object to create a set of complex commands or actions.

Implements:

Extends

Members


<constant> changeIt :system.signals.Signal

The signal emit when the task is changed.

Type:

<constant> clearIt :system.signals.Signal

The signal emit when the task is cleared.

Type:

<constant> finishIt :system.signals.Signal

This signal emit when the action is finished.

Type:
Inherited From:

<constant> infoIt :system.signals.Signal

The signal emit when the task emit a message.

Type:

looping :boolean

The flag to determinate if the task must be looped.

Type:
  • boolean
Default Value:
  • false

<constant> loopIt :system.signals.Signal

The signal emit when the task is looped.

Type:

<constant> pauseIt :system.signals.Signal

The signal emit when the task is paused.

Type:

<readonly> phase :string

Indicates the current phase.

Type:
  • string
Inherited From:
See:

<constant> progressIt :system.signals.Signal

The signal emit when the task is in progress.

Type:

<constant> resumeIt :system.signals.Signal

The signal emit when the task is resumed.

Type:

<readonly> running :boolean

Indicates action is running.

Type:
  • boolean
Inherited From:

<constant> startIt :system.signals.Signal

This signal emit when the action is started.

Type:
Inherited From:

<constant> stopIt :system.signals.Signal

This signal emit when the task is stopped.

Type:

<constant> timeoutIt :system.signals.Signal

The signal emit when the task is out of time.

Type:

Methods


clone()

Creates a copy of the object.

Inherited From:
Overrides:
Returns:

a shallow copy of this object.


isLocked()

Returns true if the object is locked.

Inherited From:
Implements:
Returns:

true if the object is locked.


lock()

Locks the object.

Inherited From:
Implements:

notifyChanged()

Notify when the process is changed.


notifyCleared()

Notify when the process is cleared.


notifyFinished()

Notify when the process is finished.

Inherited From:

notifyInfo()

Notify a specific information when the process is changed.


notifyLooped()

Notify when the process is looped.


notifyPaused()

Notify when the process is paused.


notifyProgress()

Notify when the process is progress.


notifyResumed()

Notify when the process is resumed.


notifyStarted()

Notify when the process is started.

Inherited From:

notifyStopped()

Notify when the process is stopped.


notifyTimeout()

Notify when the process is out of time.


reset()

Resets the task.

Implements:

resume()

Resumes the task.


run()

Run the command.

Inherited From:

start()

Starts the task.

Implements:

stop()

Starts the process.

Implements:

unlock()

Unlocks the object.

Inherited From:
Implements: