套件 | mx.data |
介面 | public interface IItemReference extends IEventDispatcher |
實作者 | ItemReference |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
執行階段版本: | Flash Player 10.1, AIR 2.0 |
DataService.getItem()
and DataService.createItem()
methods to provide a way to manage
a reference to the remote object.
屬性 | 定義自 | ||
---|---|---|---|
valid : Boolean
Set to false if the ItemReference becomes invalid
either because the server faulted when trying to retrieve the item
or if the retrieved item was itself null. | IItemReference |
方法 | 定義自 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | IEventDispatcher | ||
會將事件傳送到事件流程。 | IEventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | IEventDispatcher | ||
Releases the managed item reference retrieved with the
getItem() or createItem() method call that returned
this ItemReference. | IItemReference | ||
會從 EventDispatcher 物件移除偵聽程式。 | IEventDispatcher | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | IEventDispatcher |
valid | 屬性 |
valid:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
執行階段版本: | Flash Player 10.1, AIR 2.0 |
Set to false
if the ItemReference becomes invalid
either because the server faulted when trying to retrieve the item
or if the retrieved item was itself null.
This property can be used to bind to your user interface controls to
display status information for this item without having to listen for
explicit fault events.
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get valid():Boolean
public function set valid(value:Boolean):void
releaseItem | () | 方法 |
public function releaseItem(copyStillManagedItems:Boolean = true, enableStillManagedCheck:Boolean = true):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
執行階段版本: | Flash Player 10.1, AIR 2.0 |
Releases the managed item reference retrieved with the
getItem()
or createItem()
method call that returned
this ItemReference.
It is possible to have more than one ItemReference that points to the
same item on the same client.
Use this method to release the proper reference.
參數
copyStillManagedItems:Boolean (default = true ) — Boolean indicating that a copy of this item should be
placed in this ItemReference should the current item still be referenced.
This can occur if more than one call to DataService.getItem() for this
same item is made, or if this item is referenced by a collection returned from a call to
DataService.fill() .
| |
enableStillManagedCheck:Boolean (default = true ) — Boolean indicating if the item should be checked for
additional references.
|
Tue Jun 12 2018, 03:47 PM Z