Vector

In my past three posts I’ve been evolving a technique for creating a type-safe collection class that can be used a DataProvider for Flex Lists and DataGrids. As I’ve discussed previously, the problem with these controls is that they use the ArrayList or ArrayCollection classes as their data providers. And the problem those collections is [...]

{ 1 comment }

In this post I’m continuing the theme of my last two posts, type-safe DataProviders, and combining it with the theme of the two posts before that: the Parsley application framework. I’ll be using Parsley’s DynamicCommand object to encapsulate the fetching of data from a server and then store it in a type-safe DataProvider that will [...]

{ 1 comment }

Last week I posted an article showing how to create type-safe lists for use as Flex List-based DataProviders. This week I’m enhancing that example to dispatch events when items are added to or removed from the collection. This will allow Lists to update their displays automatically whenever the contents of the DataProvider change. If you [...]

{ 2 comments }

Update, 2/25/11: I’ve updated the code to provide both complete type-safety and event dispatching so that Lists will update their views automatically when the list contents are changed. If you’re interested in this topic, you will probably still want to start by reading this post. But be sure to continue with my follow-up post An [...]

{ 4 comments }