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

Package | org.fluint.uiImpersonation.flex
Class | public class FlexMXVisualTestEnvironment
Inheritance | FlexMXVisualTestEnvironment VisualTestEnvironment Object
Subclasses | FlexSparkVisualTestEnvironment

A visual test environment for Flex projects

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | numChildren : int [read-only] Returns the number of children currently in the test environment | VisualTestEnvironment
|  | testEnvironment : Sprite [read-only] Returns the sprite which contains all children added to the test environment. | VisualTestEnvironment

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | FlexMXVisualTestEnvironment(baseClass:Class) Constructor Creates a new test environment using the baseClass as a base. | FlexMXVisualTestEnvironment
|  | addChild(child:DisplayObject):DisplayObject Add a child to test environment. | VisualTestEnvironment
|  | addChildAt(child:DisplayObject, index:int):DisplayObject Add a display object at the specified index. | VisualTestEnvironment
|  | addElement(element:DisplayObject):DisplayObject Not used in projects prior to Flex 4. | VisualTestEnvironment
|  | addElementAt(element:DisplayObject, index:int):DisplayObject Not used in projects prior to Flex 4. | VisualTestEnvironment
|  | getChildAt(index:int):DisplayObject Retrieves the child at the specified index without removing the child. | VisualTestEnvironment
|  | getChildByName(name:String):DisplayObject Retrieves the child with the specified name without removing the child\ | VisualTestEnvironment
|  | getChildIndex(child:DisplayObject):int Retrieves the index of the specified child in the test environment | VisualTestEnvironment
|  | getElementAt(index:int):DisplayObject Not used in projects prior to Flex 4. | VisualTestEnvironment
|  | getElementIndex(element:DisplayObject):int Not used in projects prior to Flex 4. | VisualTestEnvironment
|  | removeAllChildren():void Removes all children currently in the test environment | VisualTestEnvironment
|  | removeAllElements():void Not used in projects prior to Flex 4. | VisualTestEnvironment
|  | removeChild(child:DisplayObject):DisplayObject Removes the specified child from the test environment. | VisualTestEnvironment
|  | removeChildAt(index:int):DisplayObject Removes a child at the specified index. | VisualTestEnvironment
|  | removeElement(element:DisplayObject):DisplayObject Not used in projects prior to Flex 4. | VisualTestEnvironment
|  | removeElementAt(index:int):DisplayObject Not used in projects prior to Flex 4. | VisualTestEnvironment
|  | setChildIndex(child:DisplayObject, newIndex:int):void Updates the specified child to the new index. | VisualTestEnvironment
|  | setElementIndex(element:DisplayObject, index:int):void Not used in projects prior to Flex 4. | VisualTestEnvironment

Constructor Detail

FlexMXVisualTestEnvironment | () | Constructor

`public function FlexMXVisualTestEnvironment(baseClass:Class)`

Constructor

Creates a new test environment using the `baseClass` as a base. This base needs to be a container that implements `IVisualElementContainer`. If no base class is provided, automatically uses mx.core.Container.

Parameters

| `baseClass:Class` — A class reference to the container the environment should be built from.

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