
101
4
CHAPTER 4
Data Providers
This topic describes migrating data providers, including the dataProvider property of Flex
controls and the ways you access and manipulate the data represented by the
dataProvider
property. For detailed information on using data providers in Flex 2, see Chapter 7, “Using
Data Providers and Collections,” in Flex 2 Developer’s Guide.
The DataProvider interface and class no longer exist and have been replaced by the collection
package hierarchy. However, you still use the
dataProvider property to specify the source of
the data in a control such as DataGrid or Menu. The collection classes include methods for
manipulating the underlying data and the view of that data that is displayed in the control.
The collection package includes the following interfaces and classes:
■ IList, ICollectionView, and IViewCursor interface, and the CursorBookmark class which
you use to access and manipulate data. The ICollectionView interface can represent a
sorted or filtered subset of data without modifying the underlying data.
■ ArrayCollection class, which implements the IList and ICollectionView interface using a
backing Array.
■ XMLListCollection which implements the IList and ICollectionView interface using a
backing E4X XML object.
■ Sort, and SortField for sorting the data representation of an ICollectionView.
■ ItemResponder, for handling remote paged collections.
■ ListCollectionView, a building-block class used by XMLListCollection and
ArrayCollection.
For detailed descriptions of all interfaces and classes, see the collection package in Adobe Flex 2
Language Reference. For documentation on using the package interfaces and classes, see
Chapter 7, “Using Data Providers and Collections,” in Flex 2 Developer’s Guide.
Comentários a estes Manuais