My favorites | Sign in
Google
                
Search
for
Updated Jan 30, 2009 by ecc@google.com
Labels: Type-Widget
FastTree  
A fast tree widget meant for large trees.

Introduction

Powerful applications often end up with very large trees in them. The original GWT Tree widget was not designed to handle the sheer number of nodes that are generated in some trees. FastTree has been optimized to handle this case.

Summary Table

Field Location
Demo http://collectionofdemos.appspot.com/demo/com.google.gwt.demos.fasttree.FastTreeDemo/FastTreeDemo.html
Sample Code demo code
Module com.google.gwt.widgetideas.BasicWidget
Source starting point http://google-web-toolkit-incubator.googlecode.com/svn/trunk/src/com/google/gwt/widgetideas/client/FastTree.java

Details

Warning FastTree uses css background images to represent leaf nodes. If you chose not to use style injection, either via the FastTreeaddDefaultCSS method or by rolling your on using StyleInjector, you must include an invisible treeOpen.gif and treeClosed.gif in your application. Otherwise IE will not cache the images correctly, thereby defeating the purpose of FastTree.


Comment by agsharath, Feb 20, 2008

WOW !!!

This is JUST what i needed !!! the closest i could find was this which was not free ...thanks! you guys are great!!

Comment by sappling, May 22, 2008

I know this isn't related to speed, but it would be great if one of the trees supported multi-select.

Comment by kevin.krouse, Jul 15, 2008

Yes, multi-select would be wonderful.

Comment by sylvain....@jdsu.com, Sep 22, 2008

Do you plan to include that component in gwt toolkit? Could you please give more visibility on your roadmap: which GWT incubator component will be included in GWT Toolkit?

Comment by mspangler, Oct 02, 2008

Will the FastTreeItem? support the setUserObject method in the future?

Comment by jimmysubackup1, Mar 05, 2009

From the FastTree demo above, when a node is selected, the background color becomes blue.

My project requirement dictates that I need the background color to go all the way to the left including the treeOpen/treeClose image. How can I go about accomplishing that? Thank you very much for your help.

Comment by mark.macumber, Mar 15, 2009

@jimmysubackup1, Not sure if this is what you mean, but you can look at overriding the static addDefaultCSS() method, also extend the "DefaultResources?" interface defined in the FastTree class, then you can override the treeClosed() and treeOpen() interfact methods to use different (ie. your own) resources (that must be on the class path).

However, I dont really know how you would get it to highlight all the way over to the left, we are also looking into that at the moment :)

Comment by yen.mohan, Oct 01, 2009

hi I am new to GWT and i want to use this FastTree in my demo.I have created a new project thru Eclipse and i downloaded latest incubator jar in my project and downloaded FastTree.java and FastTreeDemo?.java. when i add these files i m getting import error. kindly guide me how to use this incubator code in the projects. Thanks


Sign in to add a comment