Multi-selection tree

217 views
Skip to first unread message

Grégory Viviand

unread,
Jul 4, 2007, 10:46:05 AM7/4/07
to Google Web Toolkit
Hello !

Is there any way to make a gwt tree multi-selectionnable ?
I mean select several items in a tree in order to make a global drag &
drop (for example)

Thanks for your answers.

Grégory Viviand.

wylp...@gmail.com

unread,
Jul 4, 2007, 9:31:16 PM7/4/07
to Google Web Toolkit

Grégory Viviand

unread,
Jul 6, 2007, 9:06:56 AM7/6/07
to Google Web Toolkit
Thanks for the answer but my problem in not on drag&drop.

Want I want is to select several items in a tree at the same time, in
order to apply them the same operation or the same action (dragging
several items to to the same table and adding these items in new rows
in this table, for example)

It could be by a Ctrl+click action on several tree item. Or by
defining checkbutton tree items, I don't know ?

Is anybody knows if such an implementation of a GWT tree have been
published ?

Thanks for your answers.

Grégory Viviand


On 5 juil, 03:31, "wylpe...@gmail.com" <wylpe...@gmail.com> wrote:
> http://code.google.com/p/gwt-dnd-tree/

Ksenia

unread,
Jul 7, 2007, 9:17:14 PM7/7/07
to Google Web Toolkit
Gregory,

unfortunately the GWT Tree class can only have one TreeItem selected.
If you look at Tree class, you will find the following variable

private TreeItem curSelection;

That is one TreeItem that stores the currently selected item. To make
multiple selection you will need to rewrite the Tree class. And this
task is not trivial, at least, from my point of view. I haven't heard
about any implementation of the multiple selection tree yet.

Hope somebody else needs that and is going to implement it.

Good luck!

Reply all
Reply to author
Forward
0 new messages