| Package | com.pbking.app.command |
| Class | public class ThreadedCommand |
| Inheritance | ThreadedCommand AsyncCommand AppCommand flash.events.EventDispatcher |
| Implements | IRunnable, IThread |
| Property | Defined by | ||
|---|---|---|---|
| autoOptimizeIterations : Boolean = true | ThreadedCommand | ||
![]() | complete : Boolean | AsyncCommand | |
![]() | executing : Boolean | AsyncCommand | |
| iterationsPerRun : int = 1000 | ThreadedCommand | ||
![]() | LOGGING_CATEGORY : String = "pbking.command" [static]
| AppCommand | |
![]() | MAXIMUM_UNDO_HISTORY : int = 100 [static]
| AppCommand | |
| optimalRunLength : int = 500 [static]
| ThreadedCommand | ||
| optimizationAccuracy : int = 50 [static]
| ThreadedCommand | ||
| priority : int | ThreadedCommand | ||
| runnable : IRunnable
[read-only]
| ThreadedCommand | ||
![]() | success : Boolean | AsyncCommand | |
![]() | undoable : Boolean | AppCommand | |
![]() | _undoableCommands : Array [static]
| AppCommand | |
![]() | undoableCommands : Array [static]
| AppCommand | |
| Property | Defined by | ||
|---|---|---|---|
![]() | executeImmediately : Boolean | AppCommand | |
| iterationCount : int = 0 | ThreadedCommand | ||
![]() | logger : PBLogger | AppCommand | |
| _priority : int = 300 | ThreadedCommand | ||
| runLength : int | ThreadedCommand | ||
| runStartTime : int | ThreadedCommand | ||
![]() | _success : Boolean = true | AsyncCommand | |
![]() | _undoable : Boolean = false | AppCommand | |
| Method | Defined by | ||
|---|---|---|---|
|
ThreadedCommand(executeImmediately:Boolean = false)
| ThreadedCommand | ||
![]() |
addCallback(func:Function):void
| AsyncCommand | |
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
| AsyncCommand | |
![]() |
execute():void
| AsyncCommand | |
![]() |
removeAllListeners():void
| AsyncCommand | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
| AsyncCommand | |
|
run():void
| ThreadedCommand | ||
|
start():void
| ThreadedCommand | ||
|
stop():void
| ThreadedCommand | ||
![]() |
undo():void
Execute a command's undo logic.
| AppCommand | |
![]() |
[static]
| AppCommand | |
|
yield(percentComplete:Number = 0):void
| ThreadedCommand | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
addToUndoableList(c:AppCommand):void
[static]
| AppCommand | |
|
handleExecution():void
| ThreadedCommand | ||
|
handleRun():void
| ThreadedCommand | ||
![]() |
handleUndo():void
| AppCommand | |
|
onComplete():void
| ThreadedCommand | ||
| autoOptimizeIterations | property |
public var autoOptimizeIterations:Boolean = true
| iterationCount | property |
protected var iterationCount:int = 0
| iterationsPerRun | property |
public var iterationsPerRun:int = 1000
| optimalRunLength | property |
public static var optimalRunLength:int = 500
| optimizationAccuracy | property |
public static var optimizationAccuracy:int = 50
| _priority | property |
protected var _priority:int = 300
| priority | property |
priority:int [read-write]Implementation
public function get priority():int
public function set priority(value:int):void
| runLength | property |
protected var runLength:int
| runnable | property |
| runStartTime | property |
protected var runStartTime:int
| ThreadedCommand | () | constructor |
public function ThreadedCommand(executeImmediately:Boolean = false)Parameters
executeImmediately:Boolean (default = false) |
| handleExecution | () | method |
protected override function handleExecution():void
| handleRun | () | method |
protected function handleRun():void
| onComplete | () | method |
protected override function onComplete():void
| run | () | method |
public function run():void
| start | () | method |
public function start():void
| stop | () | method |
public function stop():void
| yield | () | method |
public function yield(percentComplete:Number = 0):voidParameters
percentComplete:Number (default = 0) |