how to add multiselection to tree in gwt 2.4

283 views
Skip to first unread message

Dayananda B V

unread,
May 7, 2012, 9:18:48 AM5/7/12
to Google Web Toolkit
Hi all,

How to add multiselection to tree in gwt 2.4, I created
MultiSelectionModel, i tried to set multiselectionmodel to tree, but i
don't see any multiselection method to add.

Thanks
Dayananda B V

Dayananda B V

unread,
May 8, 2012, 6:04:23 AM5/8/12
to Google Web Toolkit
please help me to fix this

On May 7, 6:18 pm, Dayananda B V <dayanand...@gmail.com> wrote:
> Hi all,
>
> How to add multiselection totreein gwt 2.4, I created
> MultiSelectionModel, i tried to set multiselectionmodel totree, but i

Jens

unread,
May 8, 2012, 6:57:25 AM5/8/12
to google-we...@googlegroups.com
In your TreeViewModel for CellTree you have to have to implement TreeViewModel.getNodeInfo(..). A default implementation of NodeInfo is DefaultNodeInfo which takes a SelectionModel in its constructor.


-- J.

Dayananda B V

unread,
May 8, 2012, 7:40:02 AM5/8/12
to Google Web Toolkit
thank you so much for replay, Actually i used Tree. Is it i need to
use CellTree to get support for multiselection?

On May 8, 3:57 pm, Jens <jens.nehlme...@gmail.com> wrote:
> In your TreeViewModel for CellTree you have to have to implement
> TreeViewModel.getNodeInfo(..). A default implementation of NodeInfo is
> DefaultNodeInfo which takes a SelectionModel in its constructor.
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/g...
>
> -- J.
>
> Am Montag, 7. Mai 2012 15:18:48 UTC+2 schrieb Dayananda B V:
>
>
>
>
>
> > Hi all,
>
> > How to add multiselection to tree in gwt 2.4, I created
> > MultiSelectionModel, i tried to set multiselectionmodel to tree, but i
> > don't see any multiselection method to add.
>
> > Thanks
> > Dayananda B V- Hide quoted text -
>
> - Show quoted text -

Jens

unread,
May 8, 2012, 8:36:03 AM5/8/12
to google-we...@googlegroups.com
You don't have to. You could also write your own class that defines some logic how to select items in a Tree. 

If you plan to display lots of data in a Tree then you should switch to CellTree as its a lot faster for large data sets.

-- J.

Dayananda B V

unread,
May 9, 2012, 1:27:02 AM5/9/12
to Google Web Toolkit
Thank you so much Jens, appreciate your timely help. I am displaying
lot of data on tree, maybe I need to reconsider to use Tree.
Reply all
Reply to author
Forward
0 new messages