(Adobe® Flex™ 2 プラグイン for Mercury™ Quick Test Pro)
パッケージmx.automation
インターフェイスpublic interface IAutomationObject
インプリメンタUIComponent, UIComponentAutomationImpl, UITextField, UITextFieldAutomationImpl

IAutomationObject インターフェイスは、コンポーネントのオートメーションを実装する委譲オブジェクトのインターフェイスを定義します。



パブリックプロパティ
 プロパティ定義
  automationDelegate : Object
オートメーション関連機能を処理する委譲オブジェクトです。
IAutomationObject
  automationName : String
このオブジェクトの識別子として使用できる名前です。
IAutomationObject
  automationTabularData : Object
[read-only] データの取得に使用できる IAutomationTabularData インターフェイスの実装です。
IAutomationObject
  automationValue : Array
[read-only] この値は通常、オブジェクトのレンダリングされた表示に対応しており、アプリケーションでの視覚的な表示と同じになるように、識別子とオブジェクトを関連付けるために使用できます。
IAutomationObject
  numAutomationChildren : int
[read-only] このコンテナに含まれるオートメーションの子の数です。
IAutomationObject
  showInAutomationHierarchy : Boolean
オートメーションオブジェクトがオートメーション階層で表示されているかどうかを示すフラグです。
IAutomationObject
パブリック Methods
 メソッド定義
  
このコンテナ内の子を識別するプロパティのセットを返します。
IAutomationObject
  
指定されたインデックス位置でオートメーションオブジェクトを提供します。
IAutomationObject
  
指定されたイベントを再生します。
IAutomationObject
  
提供された ID を使用して子を解決します。
IAutomationObject
プロパティの詳細
automationDelegateプロパティ
automationDelegate:Object  [read-write]

オートメーション関連機能を処理する委譲オブジェクトです。オートメーションは、委譲オブジェクトを作成するときにこれを設定します。

実装
    public function get automationDelegate():Object
    public function set automationDelegate(value:Object):void
automationNameプロパティ 
automationName:String  [read-write]

このオブジェクトの識別子として使用できる名前です。

実装
    public function get automationName():String
    public function set automationName(value:String):void
automationTabularDataプロパティ 
automationTabularData:Object  [read-only]

データの取得に使用できる IAutomationTabularData インターフェイスの実装です。

実装
    public function get automationTabularData():Object
automationValueプロパティ 
automationValue:Array  [read-only]

この値は通常、オブジェクトのレンダリングされた表示に対応しており、アプリケーションでの視覚的な表示と同じになるように、識別子とオブジェクトを関連付けるために使用できます。

実装
    public function get automationValue():Array
numAutomationChildrenプロパティ 
numAutomationChildren:int  [read-only]

このコンテナに含まれるオートメーションの子の数です。この合計には、オートメーション階層内で有効ではない子が含まれることはありますが、複合の子が含まれることはありません。

実装
    public function get numAutomationChildren():int
showInAutomationHierarchyプロパティ 
showInAutomationHierarchy:Boolean  [read-write]

オートメーションオブジェクトがオートメーション階層で表示されているかどうかを示すフラグです。階層に表示されないコンテナの子は、次に高いレベルで表示されている親の子として表示されます。通常、レイアウトに使用するコンテナ (ボックスや Canvas など) は、階層に表示されません。

一部のコントロールでは、必要に応じて強制的に階層に子が表示されます。たとえば List の場合、ボックスなどのアイテムレンダラーが常に強制的に階層に表示されます。実装者では、このプロパティを true に設定することをサポートする必要があります。

実装
    public function get showInAutomationHierarchy():Boolean
    public function set showInAutomationHierarchy(value:Boolean):void
メソッドの詳細
createAutomationIDPart()メソッド
public function createAutomationIDPart(child:IAutomationObject):Object

このコンテナ内の子を識別するプロパティのセットを返します。アプリケーションの存続中は、これらの値を変更しないでください。

パラメータ
child:IAutomationObject — ID を提供する対象の子です。

戻り値
Object — コンポーネントを解決するために後で使用できる、子を記述するプロパティのセットです。
getAutomationChildAt()メソッド 
public function getAutomationChildAt(index:int):IAutomationObject

指定されたインデックス位置でオートメーションオブジェクトを提供します。このリストには、複合である子を含めないでください。

パラメータ
index:int — 返す子のインデックスです。

戻り値
IAutomationObject — 指定されたインデックス位置にある子です。
replayAutomatableEvent()メソッド 
public function replayAutomatableEvent(event:Event):Boolean

指定されたイベントを再生します。デフォルトの再生動作がスーパークラスで定義されている場合、コンポーネント作成者は、たいてい super.replayAutomatableEvent を呼び出します。

パラメータ
event:Event — 再生するイベントです。

戻り値
Boolean — 再生が正常に行われた場合は true です。
resolveAutomationIDPart()メソッド 
public function resolveAutomationIDPart(criteria:Object):Array

提供された ID を使用して子を解決します。この ID は、createAutomationIDPart() メソッドによって提供されるプロパティのセットです。

パラメータ
criteria:Object — 子を記述するプロパティのセットです。この条件には、正規表現の値を含めることができるので、複数の子を条件に一致させることができます。

戻り値
Array — 条件に一致する子の配列、または解決できない子がない場合は null です。