Either (1) using a custom node editor or (2) using a Rollup instead of TreeView is the way to go here (depending on your use case). The stock node editor uses a TextInput, so you'd have to write your own node editor. The existing stock editor ( http://svn.apache.org/repos/asf/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TreeViewNodeEditor.java) will be a good reference here.
-T On Tue, May 18, 2010 at 10:50 AM, Jérôme Serré < [email protected]> wrote: > Yes, exactly. > Thank you. > > -----Message d'origine----- > De : Greg Brown [mailto:[email protected]] > Envoyé : mardi 18 mai 2010 16:46 > À : [email protected] > Objet : Re: TreeView and ListButton > > Do you mean that you want to display a list button within each tree node? > If > so, that's not directly supported. Similar to TableView, TreeView uses > renderers - it can't contain sub-components. However, you can easily use a > list button as a node editor. Todd can probably offer some additional > insight here. > G > > On May 18, 2010, at 10:34 AM, Jérôme Serré wrote: > > > Hello > > > > I would like to associate a listbutton to each leaf of the treeview. > > Is this possible? Can you give me the procedure? > > Thank you very much > > > > __ > > > > Cordialement > > > > Jérôme Serré > > > > > > > > > >
