Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
ItemPendingError

Package | mx.collections.errors
Class | public class ItemPendingError
Inheritance | ItemPendingError Error
Subclasses | ChildItemPendingError

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

This error is thrown when retrieving an item from a collection view requires an asynchronous call. This error occurs when the backing data is provided from a remote source and the data is not yet available locally.

If the receiver of this error needs notification when the requested item becomes available (that is, when the asynchronous call completes), it must use the `addResponder()` method and specify an object that supports the `mx.rpc.IResponder` interface to respond when the item is available. The `mx.collections.ItemResponder` class implements the IResponder interface and supports a `data` property.

See also

mx.collections.ItemResponder
mx.rpc.IResponder

Public Properties

| Property | Defined By
--- | --- | ---
|  | responders : Array [read-only] An array of IResponder handlers that will be called when the asynchronous request completes. | ItemPendingError

Public Methods

| Method | Defined By
--- | --- | ---
|  | ItemPendingError(message:String) Constructor. | ItemPendingError
|  | addResponder(responder:IResponder):void addResponder adds a responder to an Array of responders. | ItemPendingError

Property Detail

responders | property

`responders:Array` [read-only]

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

An array of IResponder handlers that will be called when the asynchronous request completes.

Implementation
`public function get responders():Array`
Constructor Detail

ItemPendingError | () | Constructor

`public function ItemPendingError(message:String)`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Constructor.

Called by the Flex Framework when a request is made for an item that isn't local.

Parameters

| `message:String` — A message providing information about the error cause.

Method Detail

addResponder | () | method

`public function addResponder(responder:IResponder):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

`addResponder` adds a responder to an Array of responders. The object assigned to the responder parameter must implement the mx.rpc.IResponder interface.

Parameters

| `responder:IResponder` — A handler which will be called when the asynchronous request completes.

See also

mx.rpc.IResponder
mx.collections.ItemResponder

Sun Mar 5 2017, 03:42 PM +11:00