views:

30

answers:

1

I know AS3Commons-collection framework is a good one, but it can't use in ComboBox, recently I try to use LinkedSet data structure to retrieve and store data in ComboBox, any one can help me? thanks in advance.

A: 

Have you looked at the ListCollectionView? Is there a reason not to use it's children, the ArrayCollection or XMLListcollections?

What other features would you be looking for in a collection framework?

www.Flextras.com
I want use LinkedSet data structure, because I will use LinkedSet to store and retrieve thousand of data, and LinkedSet has the ability of check if the data is duplicate, ArrayCollection's performance is bad, LinkedSet in AS3Commons-collection framework has a good performance and meet my requirements, but it can't work in ComboBox or DataGrid(ComboBox limit the dataProvider type)
jason
I'd be cautious about loading thousands of data elements into memory for the app. You might want to investigate a server side piece that supports some kind of data paging. I believe LiveCycle offers this. You may also consider creating a LinkedSetCollection class that extends the ListCollectionView, but uses the LinkedSet as a source. Then you can probably use it as a dataProvider to the ComboBox and DataGrid.
www.Flextras.com
@www.Flextras.com. Creating a LinkedSetCollection class that extends the ListCollectionView, but uses the LinkedSet as a source.This may works, I will try it, if there is any issue, I hope you can give some advice, thx
jason
Your best bet is to look at code for ArrayCollection and XMLListCollection and then use the same approach. But, if you have further questions feel free to ask.
www.Flextras.com
Thanks a lot. I hope I can do it
jason
@www,Flextras.com. I have to implements IList interface, but function such as getItemAt(index:int,prefench:int = 0) has a index pram, how can I wrapper to my LinkedSet function getItem(node:LinkedNode), you know that LinkedSet doesn't have index maintain, how to add
jason
You'll have to decide that for yourself. You can easily add in the method signature with no implementation. Or you can always add items tot he end of the [or beginning] of the list, ignoring the index parameter.
www.Flextras.com