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.
views:
30answers:
1
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
2010-08-23 11:19:37
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
2010-08-23 13:05:10
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
2010-08-23 13:40:56
@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
2010-08-24 09:00:07
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
2010-08-24 12:57:00
Thanks a lot. I hope I can do it
jason
2010-08-25 03:04:17
@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
2010-08-26 09:01:53
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
2010-08-26 11:31:05