Paket | mx.data |
Gränssnitt | public interface IItemReference extends IEventDispatcher |
Implementorer | ItemReference |
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
Körningsmiljöversioner: | 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.
Egenskap | Definieras med | ||
---|---|---|---|
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 |
Metod | Definieras med | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | IEventDispatcher | ||
Skickar en händelse till händelseflödet. | IEventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | IEventDispatcher | ||
Releases the managed item reference retrieved with the
getItem() or createItem() method call that returned
this ItemReference. | IItemReference | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | IEventDispatcher | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | IEventDispatcher |
valid | egenskap |
valid:Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
Körningsmiljöversioner: | 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.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get valid():Boolean
public function set valid(value:Boolean):void
releaseItem | () | metod |
public function releaseItem(copyStillManagedItems:Boolean = true, enableStillManagedCheck:Boolean = true):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
Körningsmiljöversioner: | 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.
Parametrar
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, 01:40 PM Z