recently, I research for the collection framework, and find LinkedSet(AS3Commons collection framework,it is a good opensource framework) written in ActionScript, but it can’t use as dataProvider in ComboBox or DataGrid, because only implements ICollectionView can use as dataProvider. So I want to try if a class implements ICollectionView can work or not. I know Flex has build-in class implements ICollectionView, but I only want to define a class not use build-in class. The class as simple as possible.(can work is enough)
recently, I research for the collection framework, and find LinkedSet( AS3Commons collection framework ,it
Share
Call
toArrayon yourLinkedSetand wrap it withmx.collections.ArrayCollectionwhich implementsICollectionView, then hand that off to theComboBox.This works for any component that doesn’t need to alter the underlying data structure. If you need to directly alter your Set via the controls, and copying to and from an Array isn’t sufficent, you’ll need to write your own implementation for
ICollectionViewandIViewCursorthat wrap AS3CC’s ICollection or whatever other class as you desire.