Package | org.fluint.sequence |
Class | public class SequenceBindingWaiter |
Inheritance | SequenceBindingWaiter ![]() |
Implements | ISequencePend |
Property | Defined 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 |
Method | Defined 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 |
changeWatcher | property |
changeWatcher:ChangeWatcher
[read-only] public function get changeWatcher():ChangeWatcher
eventName | property |
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.
public function get eventName():String
propertyName | property |
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.
public function get propertyName():String
target | property |
target:IEventDispatcher
[read-only] The event dispatcher where the properties/value pairs defined in the props object will be set.
public function get target():IEventDispatcher
timeout | property |
timeout:int
[read-only] The number of milliseconds this class should wait for its handleEvent method to be called, before firing a 'timerExpired' event.
public function get timeout():int
timeoutHandler | property |
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.
public function get timeoutHandler():Function
SequenceBindingWaiter | () | Constructor |
public function SequenceBindingWaiter(target:IEventDispatcher, propertyName:String, timeout:int, timeoutHandler:Function = null)
Constructor.
Parameterstarget: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.
|
setupListeners | () | method |
public function setupListeners(testCase:*, sequence:SequenceRunner):void
Called by the SequenceRunner to cause the setup of event listeners
Parameters
testCase:* | |
sequence:SequenceRunner |
Error — Attempting to watch un-watchable property
|