Navigatable ArrayCollection for Flex
I’ve written a NavigatableList class to provide the already handy ArrayCollection class with a simple cursor-like navigation option. You can call list.navigateTo() and provide for instance list.next or list.previous. You also specify the class to which items should belong and you can search for an item with list.findItem(property, value). And finally, you can clone it with list.clone().
EDIT: the clone() method didn’t work correctly for some reason. I’ve removed it for now.
EDIT: added an equals() method which compares this list to another list. You must specify the name of a unique property which can be used to check if two items are the same.
March 18th, 2008 at 7:04 pm
lekker bezig Ralph! Goeie shizzle!