How do I display a TreeItem in a Tree with all its children being displayed?

2009-11-12 Thread Saj
Hi All,

I have one Tree with a TreeItem root.  root has several child
items.  The default is the children of root not being displayed.  In
other words root is closed.

How do I display root being open with its children being displayed.
I thought that if I add the line  root.setState(true); that this
would do the trick but no luck.  Any ideas.   My simple OnModuleLoad
code from the example follows below.

Thanks.
Saj


public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
TreeItem root = new TreeItem(root);
root.setState(true);
root.addItem(item0);
root.addItem(item1);
root.addItem(item2);

// Add a CheckBox to the tree
TreeItem item = new TreeItem(new CheckBox(item3));
item.setVisible(true);

root.addItem(item);
Tree t = new Tree();
t.addItem(root);
rootPanel.add(t);

}

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=.




Re: How do I display a TreeItem in a Tree with all its children being displayed?

2009-11-12 Thread Saj
Okay, I got it:
root.setState(true, true);


On Nov 12, 7:13 pm, Saj sajeevba...@gmail.com wrote:
 Hi All,

 I have one Tree with a TreeItem root.  root has several child
 items.  The default is the children of root not being displayed.  In
 other words root is closed.

 How do I display root being open with its children being displayed.
 I thought that if I add the line  root.setState(true); that this
 would do the trick but no luck.  Any ideas.   My simple OnModuleLoad
 code from the example follows below.

 Thanks.
 Saj

 public void onModuleLoad() {
 RootPanel rootPanel = RootPanel.get();
 TreeItem root = new TreeItem(root);
 root.setState(true);
 root.addItem(item0);
 root.addItem(item1);
 root.addItem(item2);

 // Add a CheckBox to the tree
 TreeItem item = new TreeItem(new CheckBox(item3));
 item.setVisible(true);

 root.addItem(item);
 Tree t = new Tree();
 t.addItem(root);
 rootPanel.add(t);

 }

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=.




Debugging a project using Netbeans GWT4NB yields an error

2008-12-19 Thread Saj

Hi all,
On my 10.5.4 Mac OS X, I am using Netbeans IDE 6.5 with GWT4NB 2.5.0.
I have no problems running my GWT application in Netbeans on my
Glassfish or Tomcat server.  However when I debug my application with
server side java, I get the following error:


debug-connect-gwt-shell:
projectName/nbproject/build-gwt.xml:34: The following error occurred
while executing this line:
projectName/nbproject/build-gwt.xml:50: Java returned: 1
BUILD FAILED (total time: 15 seconds)

I have already copied the file libgwt-ll.jnilib to the projectName/lib
folder.

Any ideas or workarounds on this?  Did anybody have any luck with
running a GWT application in hosted mode in Netbeans using GWT4NB?

Thanks,
Saj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---