Packageorg.swizframework.utils.chain
Classpublic class AbstractChain
InheritanceAbstractChain Inheritance flash.events.EventDispatcher
Implements IChainStep
Subclasses CommandChain, EventChain



Public Properties
 PropertyDefined By
  chain : IChain
AbstractChain
  isComplete : Boolean
[read-only]
AbstractChain
  mode : String = sequence
AbstractChain
  position : int
AbstractChain
  steps : Array
AbstractChain
  stopOnError : Boolean
AbstractChain
Protected Properties
 PropertyDefined By
  _chain : IChain
Backing variable for chain getter/setter.
AbstractChain
  _isComplete : Boolean
AbstractChain
  _position : int = -1
Backing variable for position getter/setter.
AbstractChain
  _stopOnError : Boolean
Backing variable for stopOnError getter/setter.
AbstractChain
Public Methods
 MethodDefined By
  
AbstractChain(mode:String, stopOnError:Boolean = true)
AbstractChain
  
AbstractChain
  
complete():void
AbstractChain
  
error():void
AbstractChain
  
hasNext():Boolean
AbstractChain
  
proceed():void
AbstractChain
  
start():void
AbstractChain
  
AbstractChain
  
stepError():void
AbstractChain
Protected Methods
 MethodDefined By
  
fail():void
AbstractChain
Events
 Event Summary Defined By
  AbstractChain
  AbstractChain
  AbstractChain
  AbstractChain
  AbstractChain
Property Detail
_chainproperty
protected var _chain:IChain

Backing variable for chain getter/setter.

_isCompleteproperty 
protected var _isComplete:Boolean

_positionproperty 
protected var _position:int = -1

Backing variable for position getter/setter.

_stopOnErrorproperty 
protected var _stopOnError:Boolean

Backing variable for stopOnError getter/setter.

chainproperty 
chain:IChain


Implementation
    public function get chain():IChain
    public function set chain(value:IChain):void
isCompleteproperty 
isComplete:Boolean  [read-only]


Implementation
    public function get isComplete():Boolean
modeproperty 
public var mode:String = sequence

positionproperty 
position:int


Implementation
    public function get position():int
    public function set position(value:int):void
stepsproperty 
public var steps:Array

stopOnErrorproperty 
stopOnError:Boolean


Implementation
    public function get stopOnError():Boolean
    public function set stopOnError(value:Boolean):void
Constructor Detail
AbstractChain()Constructor
public function AbstractChain(mode:String, stopOnError:Boolean = true)



Parameters
mode:String (default = NaN)
 
stopOnError:Boolean (default = true)
Method Detail
addStep()method
public function addStep(step:IChainStep):IChain

Parameters

step:IChainStep

Returns
IChain
complete()method 
public function complete():void

error()method 
public function error():void

fail()method 
protected function fail():void

hasNext()method 
public function hasNext():Boolean

Returns
Boolean
proceed()method 
public function proceed():void

start()method 
public function start():void

stepComplete()method 
public function stepComplete():void

stepError()method 
public function stepError():void

Event Detail
chainComplete Event
Event Object Type: org.swizframework.events.ChainEvent

chainFail Event  
Event Object Type: org.swizframework.events.ChainEvent

chainStart Event  
Event Object Type: org.swizframework.events.ChainEvent

chainStepComplete Event  
Event Object Type: org.swizframework.events.ChainEvent

chainStepError Event  
Event Object Type: org.swizframework.events.ChainEvent