how to populate tree component with arraylist

I need populate tree with objects from arraylist… can add objects dynamically in runtime


         tree

1º object Arraylist +
--------2º object Arraylist+
-------------3ºobject Arraylist+
------------------4 object Arraylist+


I do not understand the component

Can you provide some details on how the objects of your tree model are structured? Like how the parent/child relationship between the objects is determined in your arraylist?

The designer help documentation for the CAF Tree control has some details about how to adapt various types of data to the tree control. So you might want to review that if you haven’t already done that.

for example:

myObject—list (dropdown)
—String (input text)
—int (label)

dropdow (options: “1”, “2”, “3”)

Onchange dropdown, if option=2, add new object to arraylist

the tree:

INITIAL

dropdown
inputText
label

ONCHANGE DROPDOWN to option =2

dropdown (=2)
-------------dropdown (=2)
-----------------------------dropdown …
-----------------------------inputText…
-----------------------------label…
-------------inputText
-------------label
inputText
label

dropdown (=2)
-------------dropdown (=1 or 3)
-------------inputText
-------------label
inputText
label

I don’t really follow what you are saying there.

Are you trying to use a Tree control to render that? Or you just want different panels to render depending on what is chosen from the dropdown control?

need to reflect arraylist in tree, or table or other component

something like this: in webmethods portal (login with Administrator)

System---->analysis------->rule list------>press “create rule” button

in “rule expression” press “edit” button

in this view if change the dropdow “expression” to “compound expression” can see …
I need something like that…

How far along have you gotten so far?

Have you gotten the data you want to display into the arraylist?

I solved it by creating all components dynamically!

Thanks