GODPAPER | All Packages | All Classes | Index | Frames No Frames |
TaskEvent

Package | org.spicefactory.lib.task.events
Class | public class TaskEvent
Inheritance | TaskEvent flash.events.Event

Event that fires when a Task changes its internal state.

Public Methods

| Method | Defined By
--- | --- | ---
|  | TaskEvent(type:String) Creates a new event instance. | TaskEvent

Public Constants

| Constant | Defined By
--- | --- | ---
|  | CANCEL : String = cancel [static] Constant for the type of event fired when a Task is cancelled. | TaskEvent
|  | COMPLETE : String = complete [static] Constant for the type of event fired when a Task is completed. | TaskEvent
|  | RESUME : String = resume [static] Constant for the type of event fired when a Task is resumed. | TaskEvent
|  | START : String = start [static] Constant for the type of event fired when a Task is started. | TaskEvent
|  | SUSPEND : String = suspend [static] Constant for the type of event fired when a Task is suspended. | TaskEvent

Constructor Detail

TaskEvent | () | Constructor

`public function TaskEvent(type:String)`

Creates a new event instance.

Parameters

| `type:String` — the type of this event

Constant Detail

CANCEL | Constant

`public static const CANCEL:String = cancel`

Constant for the type of event fired when a Task is cancelled.

COMPLETE | Constant |

`public static const COMPLETE:String = complete`

Constant for the type of event fired when a Task is completed.

RESUME | Constant |

`public static const RESUME:String = resume`

Constant for the type of event fired when a Task is resumed.

START | Constant |

`public static const START:String = start`

Constant for the type of event fired when a Task is started.

SUSPEND | Constant |

`public static const SUSPEND:String = suspend`

Constant for the type of event fired when a Task is suspended.

Thu Jan 16 2014, 01:11 PM +08:00