Pacchetto | mx.data |
Interfaccia | public interface IItemReference extends IEventDispatcher |
Implementatori | ItemReference |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 4.5 |
Versioni runtime: | 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.
Proprietà | Definito da | ||
---|---|---|---|
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 |
Metodo | Definito da | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento. | IEventDispatcher | ||
Invia un evento nel flusso di eventi. | IEventDispatcher | ||
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento. | IEventDispatcher | ||
Releases the managed item reference retrieved with the
getItem() or createItem() method call that returned
this ItemReference. | IItemReference | ||
Rimuove un listener dall'oggetto EventDispatcher. | IEventDispatcher | ||
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato. | IEventDispatcher |
valid | proprietà |
valid:Boolean
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 4.5 |
Versioni runtime: | 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.
Questa proprietà può essere utilizzata come origine per l’associazione di dati. Quando questa proprietà viene modificata, invia l’evento propertyChange
.
Implementazione
public function get valid():Boolean
public function set valid(value:Boolean):void
releaseItem | () | metodo |
public function releaseItem(copyStillManagedItems:Boolean = true, enableStillManagedCheck:Boolean = true):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 4.5 |
Versioni runtime: | 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.
Parametri
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:44 PM Z