API Documentation | All Packages | All Classes | Index | Frames No Frames |
SequenceDelay

Package | org.fluint.sequence
Class | public class SequenceDelay
Inheritance | SequenceDelay SequenceWaiter Object

A sequence step that delays the sequence for a given time period.

See also

Test sequences

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | eventName : String [read-only] Name of the event that will be broadcast by the target. | SequenceWaiter
|  | target : IEventDispatcher [read-only] The event dispatcher where the properties/value pairs defined in the props object will be set. | SequenceWaiter
|  | timeout : int [read-only] The number of milliseconds this class should wait for its handleEvent method to be called, before firing a 'timerExpired' event. | SequenceWaiter
|  | 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. | SequenceWaiter

Public Methods

| Method | Defined By
--- | --- | ---
|  | SequenceDelay(milliseconds:Number = 1000) Creates an instance. | SequenceDelay
|  | forSeconds(seconds:Number):SequenceDelay [static] Factory method for an instance with a delay expressed in seconds. | SequenceDelay
|  | setupListeners(testCase:*, sequence:SequenceRunner):void [override] Called by the SequenceRunner to cause the setup of event listeners | SequenceDelay

Constructor Detail

SequenceDelay | () | Constructor

`public function SequenceDelay(milliseconds:Number = 1000)`

Creates an instance.

Parameters

| `milliseconds:Number` (default = `1000`)`` — the delay time in ms

Method Detail

forSeconds | () | method

`public static function forSeconds(seconds:Number):SequenceDelay`

Factory method for an instance with a delay expressed in seconds.

Parameters

| `seconds:Number` — delay in seconds

Returns

| `SequenceDelay` — an instance ready to be added to a sequence

setupListeners | () | method |

`override public function setupListeners(testCase:*, sequence:SequenceRunner):void`

Called by the SequenceRunner to cause the setup of event listeners

Parameters

| `testCase:*`
| `sequence:SequenceRunner`

Thu Apr 10 2014, 08:07 AM +10:00