Packagesystem.process
Classpublic class Task
InheritanceTask Inheritance Object
Implements Action, Lockable, Loggable
Subclasses AddChild, BindTask, Cache, CoreAction, EventDispatcherTask, FiltersDisplay, FrameEngine, HideDisplay, IfTask, Initializer, InitMapModelObject, MoveTo, ObjectFactoryLoader, RemoveChild, RemoveChildAt, RemoveChildren, SetChildIndex, ShowDisplay, SwapChildrenAt

A simple representation of the Action interface.



Public Properties
 PropertyDefined By
  finishIt : Signaler
This signal emit when the notifyFinished method is invoked.
Task
  logger : Logger
Determinates the internal Logger reference of this Loggable object.
Task
  phase : String
[read-only] The current phase of the action.
Task
  running : Boolean
[read-only] Indicates true if the process is in progress.
Task
  startIt : Signaler
This signal emit when the notifyStarted method is invoked.
Task
Public Methods
 MethodDefined By
  
Creates a new Task instance.
Task
  
clone():*
Returns a shallow copy of this object.
Task
  
isLocked():Boolean
Returns true if the object is locked.
Task
  
lock():void
Locks the object.
Task
  
Notify an ActionEvent when the process is finished.
Task
  
Notify an ActionEvent when the process is started.
Task
  
run(... arguments):void
Run the process.
Task
  
unlock():void
Unlocks the display.
Task
Protected Methods
 MethodDefined By
  
setRunning(b:Boolean):void
Changes the running property value.
Task
Property Detail
finishItproperty
finishIt:Signaler

This signal emit when the notifyFinished method is invoked.


Implementation
    public function get finishIt():Signaler
    public function set finishIt(value:Signaler):void
loggerproperty 
logger:Logger

Determinates the internal Logger reference of this Loggable object.


Implementation
    public function get logger():Logger
    public function set logger(value:Logger):void
phaseproperty 
phase:String  [read-only]

The current phase of the action.


Implementation
    public function get phase():String

See also

runningproperty 
running:Boolean  [read-only]

Indicates true if the process is in progress.


Implementation
    public function get running():Boolean
startItproperty 
startIt:Signaler

This signal emit when the notifyStarted method is invoked.


Implementation
    public function get startIt():Signaler
    public function set startIt(value:Signaler):void
Constructor Detail
Task()Constructor
public function Task()

Creates a new Task instance.

Method Detail
clone()method
public function clone():*

Returns a shallow copy of this object.

Returns
* — a shallow copy of this object.
isLocked()method 
public function isLocked():Boolean

Returns true if the object is locked.

Returns
Booleantrue if the object is locked.
lock()method 
public function lock():void

Locks the object.

notifyFinished()method 
public function notifyFinished():void

Notify an ActionEvent when the process is finished.

notifyStarted()method 
public function notifyStarted():void

Notify an ActionEvent when the process is started.

run()method 
public function run(... arguments):void

Run the process. You can overrides this method in your iherited class.

Parameters

... arguments

setRunning()method 
protected function setRunning(b:Boolean):void

Changes the running property value.

Parameters

b:Boolean

unlock()method 
public function unlock():void

Unlocks the display.