套件 | com.adobe.fiber.services.wrapper |
類別 | public class DataServiceWrapper |
繼承 | DataServiceWrapper EventDispatcher Object |
實作 | IMXMLObject |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
channelSet : ChannelSet
The channelSet property of the wrapped service. | DataServiceWrapper | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
destination : String [唯讀]
The destination of the wrapped service. | DataServiceWrapper | ||
serviceControl : DataService [唯讀]
The wrapped service. | DataServiceWrapper |
方法 | 定義自 | ||
---|---|---|---|
DataServiceWrapper(destination:String)
Constructs a wrapper around a DataService for a given destination. | DataServiceWrapper | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Called after the implementing object has been created and all
component properties specified on the MXML tag have been initialized. | DataServiceWrapper | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
事件 | 摘要 | 定義自 | ||
---|---|---|---|---|
[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。 | EventDispatcher | |||
[廣播事件] 當 Flash Player 或 AIR 應用程式失去作業系統焦點並成為非作用中時傳送。 | EventDispatcher | |||
Fault events of the wrapped data service are propagated by the wrapper. | DataServiceWrapper | |||
Result events of the wrapped data service are propagated by the wrapper. | DataServiceWrapper |
channelSet | 屬性 |
channelSet:ChannelSet
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The channelSet
property of the wrapped service.
實作
public function get channelSet():ChannelSet
public function set channelSet(value:ChannelSet):void
相關 API 元素
destination | 屬性 |
serviceControl | 屬性 |
serviceControl:DataService
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The wrapped service. The service is implemented by service specific subclasses.
實作
public function get serviceControl():DataService
DataServiceWrapper | () | 建構函式 |
public function DataServiceWrapper(destination:String)
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructs a wrapper around a DataService for a given destination.
參數destination:String — The name of the desired destination.
|
相關 API 元素
initialized | () | 方法 |
public function initialized(document:Object, id:String):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
參數
document:Object — The MXML document that created this object.
| |
id:String — The identifier used by document to refer
to this object.
If the object is a deep property on document ,
id is null.
|
fault | 事件 |
mx.data.events.DataServiceFaultEvent
屬性 DataServiceFaultEvent.type =
mx.data.events.DataServiceFaultEvent.FAULT
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Fault events of the wrapped data service are propagated by the wrapper.
For details see DataService.fault
.
FAULT
constant defines the value of the type
property
of the event object for a fault
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | true, calling preventDefault() from the associated token's responder.fault method will prevent the service or operation from dispatching this event |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
fault | The Fault object that holds the conflict that occurred. |
item | The item that generated the fault. |
identity | The identity of of the item that generated the fault. |
message | The Message associated with this event. |
token | The token that represents the call to the method. Used in the asynchronous completion token pattern. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
相關 API 元素
result | 事件 |
mx.rpc.events.ResultEvent
屬性 ResultEvent.type =
mx.rpc.events.ResultEvent.RESULT
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Result events of the wrapped data service are propagated by the wrapper.
For details see DataService.result
.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | true, preventDefault() from the associated token's responder.result method will prevent the service or operation from dispatching this event |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
message | The Message associated with this event. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
result | Result that the RPC call returns. |
token | The token that represents the indiviudal call to the method. Used in the asynchronous completion token pattern. |
相關 API 元素
Tue Jun 12 2018, 03:47 PM Z