Packageorg.fluint.sequence
Classpublic class SequenceBindingWaiter
InheritanceSequenceBindingWaiter Inheritance Object
Implements ISequencePend

The sequence setter class tells the TestCase instance to pend until the eventName occurs or the timeout expires.



Public Properties
 PropertyDefined By
  changeWatcher : ChangeWatcher
[read-only]
SequenceBindingWaiter
  eventName : String
[read-only] Name of the event that will be broadcast by the target.
SequenceBindingWaiter
  propertyName : String
[read-only] Name of the property that will change.
SequenceBindingWaiter
  target : IEventDispatcher
[read-only] The event dispatcher where the properties/value pairs defined in the props object will be set.
SequenceBindingWaiter
  timeout : int
[read-only] The number of milliseconds this class should wait for its handleEvent method to be called, before firing a 'timerExpired' event.
SequenceBindingWaiter
  timeoutHandler : Function
[read-only] A reference to the event handler that should be called if the event named in eventName does not fire before the timeout is reached.
SequenceBindingWaiter
Public Methods
 MethodDefined By
  
SequenceBindingWaiter(target:IEventDispatcher, propertyName:String, timeout:int, timeoutHandler:Function = null)
Constructor.
SequenceBindingWaiter
  
setupListeners(testCase:*, sequence:SequenceRunner):void
Called by the SequenceRunner to cause the setup of event listeners
SequenceBindingWaiter
Property Detail
changeWatcherproperty
changeWatcher:ChangeWatcher  [read-only]


Implementation
    public function get changeWatcher():ChangeWatcher
eventNameproperty 
eventName:String  [read-only]

Name of the event that will be broadcast by the target. When this event is broadcast, the TestCase sequence code moves onto the next step in the sequence.


Implementation
    public function get eventName():String
propertyNameproperty 
propertyName:String  [read-only]

Name of the property that will change. When this property changes, the TestCase sequence code moves onto the next step in the sequence.


Implementation
    public function get propertyName():String
targetproperty 
target:IEventDispatcher  [read-only]

The event dispatcher where the properties/value pairs defined in the props object will be set.


Implementation
    public function get target():IEventDispatcher
timeoutproperty 
timeout:int  [read-only]

The number of milliseconds this class should wait for its handleEvent method to be called, before firing a 'timerExpired' event.


Implementation
    public function get timeout():int
timeoutHandlerproperty 
timeoutHandler:Function  [read-only]

A reference to the event handler that should be called if the event named in eventName does not fire before the timeout is reached. The handler is expected to have the follow signature: public function handleTimeoutEvent( passThroughData:Object ):void { } The parameter is a generic object that can optionally be provided by the developer when starting a new asynchronous operation.


Implementation
    public function get timeoutHandler():Function
Constructor Detail
SequenceBindingWaiter()Constructor
public function SequenceBindingWaiter(target:IEventDispatcher, propertyName:String, timeout:int, timeoutHandler:Function = null)

Constructor.

Parameters
target:IEventDispatcher — The target where the property exists.
 
propertyName:String — The name of the property that will change via data binding.
 
timeout:int — The number of milliseconds to wait before calling the timoutHandler.
 
timeoutHandler:Function (default = null) — Called if the timout is reached before the event is broadcast.
Method Detail
setupListeners()method
public function setupListeners(testCase:*, sequence:SequenceRunner):void

Called by the SequenceRunner to cause the setup of event listeners

Parameters

testCase:*
 
sequence:SequenceRunner


Throws
Error — Attempting to watch un-watchable property