Hory
4 Aug 2007, 4:06 PM
I have a list of trees. I'm trying to make it so that each of them is openable by the user in a separate tab (panel) in the center region. These trees should also support various functions (delete nodes, create new nodes, etc.) which are started by a separate toolbar. In order to access one of these functions of a particular tree, I assume I have to put each tree in distinct objects.
Is this the best method or is there a way to control particular trees without defining the same methods for each of them? And if I generate a different object for each tree which is opened, the name of the object must vary. How do I name that object dinamically in a way that I can later reference? (eg. Tree1, Tree2)?
Thanks for reading, I hope you understand what I mean.
Is this the best method or is there a way to control particular trees without defining the same methods for each of them? And if I generate a different object for each tree which is opened, the name of the object must vary. How do I name that object dinamically in a way that I can later reference? (eg. Tree1, Tree2)?
Thanks for reading, I hope you understand what I mean.