You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Jérôme Serré <je...@gmail.com> on 2010/05/18 16:34:48 UTC
TreeView and ListButton
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é
RE: TreeView and ListButton
Posted by Jérôme Serré <je...@gmail.com>.
ok, ill use the first one.
Thank you
De : Todd Volkert [mailto:tvolkert@gmail.com]
Envoyé : mardi 18 mai 2010 22:05
À : user@pivot.apache.org
Objet : Re: TreeView and ListButton
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/co
ntent/TreeViewNodeEditor.java) will be a good reference here.
-T
On Tue, May 18, 2010 at 10:50 AM, Jérôme Serré
<je...@gmail.com> wrote:
Yes, exactly.
Thank you.
-----Message d'origine-----
De : Greg Brown [mailto:gkbrown@mac.com]
Envoyé : mardi 18 mai 2010 16:46
À : user@pivot.apache.org
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é
>
>
>
>
Re: TreeView and ListButton
Posted by Todd Volkert <tv...@gmail.com>.
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é <
jerome.michel.serre@gmail.com> wrote:
> Yes, exactly.
> Thank you.
>
> -----Message d'origine-----
> De : Greg Brown [mailto:gkbrown@mac.com]
> Envoyé : mardi 18 mai 2010 16:46
> À : user@pivot.apache.org
> 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é
> >
> >
> >
> >
>
>
RE: TreeView and ListButton
Posted by Jérôme Serré <je...@gmail.com>.
Yes, exactly.
Thank you.
-----Message d'origine-----
De : Greg Brown [mailto:gkbrown@mac.com]
Envoyé : mardi 18 mai 2010 16:46
À : user@pivot.apache.org
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é
>
>
>
>
Re: TreeView and ListButton
Posted by Greg Brown <gk...@mac.com>.
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é
>
>
>
>