Paquete | mx.data |
Clase | public dynamic class ItemReference |
Herencia | ItemReference AsyncToken EventDispatcher Object |
Implementa | IItemReference |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
DataService.getItem()
and DataService.createItem()
methods to provide a way to manage a reference to the remote object.
The AsyncToken implementation that this class extends provides a list of
responders to be notified of result and fault events that occur on the
operation to retrieve the item (the get or the create).
A binding can be made to the value of the result
property
that always maintains a reference to the managed instance.
If the item is deleted in another client, the result
property
will be set to null.
If a fault occurs and the DatService instance cannot retrieve the item,
the invalid
property is set to true
.
Listen for the fault event to get more information about what caused
the error.
To release the reference to this managed item, call the
ItemReference.releaseItem()
method.
This is similar to calling the DataService.releaseItem()
method
however, unlike the DataService.releaseItem()
this method
releases this reference rather than the first item instance found of that
type.
This occurs when more than one getItem()
method call to retrieve
the same item from different parts of an application is made.
Propiedad | Definido por | ||
---|---|---|---|
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
message : IMessage [solo lectura]
Provides access to the associated message. | AsyncToken | ||
responders : Array [solo lectura]
An array of IResponder handlers that will be called when
the asynchronous request completes. | AsyncToken | ||
result : Object [solo lectura]
The result that was returned by the associated RPC call. | AsyncToken | ||
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. | ItemReference |
Método | Definido por | ||
---|---|---|---|
ItemReference(msg:IMessage)
Constructor. | ItemReference | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | ||
Adds a responder to an Array of responders. | AsyncToken | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Determines if this token has at least one mx.rpc.IResponder registered. | AsyncToken | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Releases the managed item reference retrieved with the
getItem() or createItem() method call that returned
this ItemReference. | ItemReference | ||
Elimina un detector del objeto EventDispatcher. | EventDispatcher | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
valid | propiedad |
valid:Boolean
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
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.
Esta propiedad se puede utilizar como origen para la vinculación de datos. Cuando se modifica esta propiedad, distribuye el evento propertyChange
.
Implementación
public function get valid():Boolean
public function set valid(value:Boolean):void
ItemReference | () | Información sobre |
releaseItem | () | método |
public function releaseItem(copyStillManagedItems:Boolean = true, enableStillManagedCheck:Boolean = true):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
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.
Parámetros
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, 02:12 PM Z