ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
spark.utils 

DataItem  - AS3 Flex

Packagespark.utils
Classpublic dynamic class DataItem
InheritanceDataItem Inheritance ObjectProxy Inheritance Proxy

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 2.5

The DataItem class represents a dynamic object with bindable properties. That means the Flex data binding mechanism recognizes when properties of a DataItem change at runtime. For example, a Spark DataGrid item renderer relies on data binding to a property of the items in the control's data provider. Because of data binding, when the property changes at runtime, the item renderer updates automatically.

This class is intended to be used in MXML to define object literals whose properties must be bindable. It's typically used to define List or DataGrid data provider items within an MXML file for small applications or examples with item renderers that bind to their data. Non-trival applications, or any application for which performance is a concern, should define a [Bindable] class with a fixed set of strongly typed properties and use that class to define data provider items.



Public Properties
 PropertyDefined By
 Inheriteduid : String
The unique identifier for this object.
ObjectProxy
Protected Properties
 PropertyDefined By
 Inheriteddispatcher : EventDispatcher
A reference to the EventDispatcher for this proxy.
ObjectProxy
 Inheritednotifiers : Object
A hashmap of property change notifiers that this proxy is listening for changes from; the key of the map is the property name.
ObjectProxy
 Inheritedobject : Object
[read-only] The object being proxied.
ObjectProxy
 InheritedpropertyList : Array
Contains a list of all of the property names for the proxied object.
ObjectProxy
 InheritedproxyClass : Class
Indicates what kind of proxy to create when proxying complex properties.
ObjectProxy
 Inheritedtype : QName
The qualified type name associated with this object.
ObjectProxy
Public Methods
 MethodDefined By
  
Constructor
DataItem
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object so that the listener receives notification of an event.
ObjectProxy
 Inherited
Dispatches an event into the event flow.
ObjectProxy
 Inherited
Checks whether there are any event listeners registered for a specific type of event.
ObjectProxy
 Inherited
Called when a complex property is updated.
ObjectProxy
 Inherited
Since Flex only uses ObjectProxy to wrap anonymous objects, the server flex.messaging.io.ObjectProxy instance serializes itself as a Map that will be returned as a plain ActionScript object.
ObjectProxy
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes an event listener.
ObjectProxy
 Inherited
Checks whether an event listener is registered with this object or any of its ancestors for the specified event type.
ObjectProxy
 Inherited
Since Flex only serializes the inner ActionScript object that it wraps, the server flex.messaging.io.ObjectProxy populates itself with this anonymous object's contents and appears to the user as a Map.
ObjectProxy
Protected Methods
 MethodDefined By
 Inherited
This method creates an array of all of the property names for the proxied object.
ObjectProxy
Constructor Detail

DataItem

()Constructor
public function DataItem()

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 2.5

Constructor