Tag Archives: insert

N-dimensional aka N-ary Tree

N-dimensional tree is used to represent the UI of any application. Buttons, ComboBoxes and various other components are assembled together in this data structure and then rendered on the screen. I had to enhance the design of a commercial Tree UI component (add improved searching features) and thought of creating my own n-ary Tree data […]

1  

Custom Wrapper Class for Dictionary component – Flex {UPDATED}

Added some new functionality and plugged possible bugs. New functions incorporated: function insertKeyValue(keyValueCombo:Object):void >>Argument passed in is used as both Key and Value function insertArray(arr:Array):void >>Takes an Array object as argument and inserts each Array element in the MyDictionary Object function clone():MyDictionary >>Performs a deep copy function getValue(key : Object):Object >>Returns the corresponding value for the […]

0  

Custom Wrapper Class for Dictionary component – Flex

I was developing a Flex module earlier yesterday and somehow felt the need of an efficient data structure for look-up purpose. Array and ArrayCollection are just not good enough and the default implementation of Dictionary as part of Flex API is a no-brainer. So, I decided to create a wrapper functionality similar to the Dictionary […]

0