aspose file tools
The moose likes GWT and the fly likes Dynamic Tree using GWT Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » GWT
Reply Bookmark "Dynamic Tree using GWT" Watch "Dynamic Tree using GWT" New topic
Author

Dynamic Tree using GWT

karthik shivkumar
Greenhorn

Joined: Oct 02, 2006
Posts: 6
Hi,

I am trying to build a dynamic tree using GWT. Any code examples, that you refer would be much appreciated.

E.g. of what I am trying to build

Root
|
Level 1
|
Level 1.1
|
Level 2
|
Level 2.1
Level 2.2

and so on..


Skay
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8568

Check out http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwTree.java?r=2610


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
karthik shivkumar
Greenhorn

Joined: Oct 02, 2006
Posts: 6
Thanks Maneesh.. But, I wasn't able to use the addTreeListener method.. Since it says the method is deprecated..
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8568

From the API docs

Deprecated.
Use addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler),
addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler),
and addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler) instead
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Dynamic Tree using GWT
 
Similar Threads
JSF Vs. ASP.NET
Need help understanding Dojo Struts2 ajax tree generation
How to create Editable Tree structure with database data
Context Menu on Tree in GWT 2.0.3
creating netui:tree from XML