Celltree Refresh question
If I add a new node to a tree which has been previously rendered via Celltree, how do I add the node to the tree model and render the modified tree without (hopefully) reloading and redrawing the entire tree? Is an example of this process documented anywhere? -- 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=en.
Re: Problems selecting a Cell in a CellTree
John, thanks for the idea, but the goal is to identify a particular cell to permit the change of a whole set of parameters when a particular cell is selected, not just the text in the cell. I don't want to show all the parameters in the tree, just the label for them. The goal would be to pop a dialog box once the cell is selected to allow the user to enter all the additional information. The tree construct is useful because it shows the relationships between the various nodes. On Nov 20, 6:03 pm, John LaBanca jlaba...@google.com wrote: Have you tried EditTextCell? It shows readonly text, but turns into a Text Box when you click on it. Sounds like what you want. Thanks, John LaBanca jlaba...@google.com On Sat, Nov 20, 2010 at 11:45 AM, dleins dle...@gmail.com wrote: I've succeeded in displaying a dynamic Celltree from my database of nodes, but cannot figure out how to make the displayed TextCells clickable so that I may edit them, add additional children, etc. I admit I am rather a novice using the new Cell Widgets. Here is the stripped down code. I have left out the code that generates my arraylist of tree node (alNodes). Any help, thoughts or suggestions would be greatly appreciated. A simple example that popped a Window.alert when a TextCell was clicked would be more than sufficient! Perhaps a ClickableTextCell would work? private class CustomTreeModel implements TreeViewModel { public T NodeInfo? getNodeInfo(T value) { ListDataProviderString dataProvider = new ListDataProviderString(); String type = ; Integer parent = 0; Integer child = 0; // for the root of the tree if (value == null) { for (int i = 0; i alNodes.size(); i++) { if (alNodes.get(i).ruid == startnode alNodes.get(i).type == S) { dataProvider.getList().add(alNodes.get(i).title); break; } } } else { // get the current node info from alNodes ArrayList for (int i = 0; i alNodes.size(); i++) { if (alNodes.get(i).title.equals(value)) { type = alNodes.get(i).type; parent = alNodes.get(i).ruid; child = alNodes.get(i).destSituation; } } // Depending on the type of the current node, find the child or children for the dataprovider for the next level if (type.equals(A)) { for (int j = 0; j alNodes.size(); j++) { if (alNodes.get(j).ruid == child) { dataProvider.getList().add(alNodes.get(j).title); break; // Note that A type nodes will only have a single child } } } else { for (int j = 0; j alNodes.size(); j++) { if (alNodes.get(j).parentSituation == parent) { dataProvider.getList().add(alNodes.get(j).title); } } } } return new DefaultNodeInfoString(dataProvider, new TextCell()); } public boolean isLeaf(Object value) { String type = ; Integer parent = 0; Integer child = 0; for (int i = 0; i alNodes.size(); i++) { if (alNodes.get(i).title.equals(value)) { type = alNodes.get(i).type; parent = alNodes.get(i).ruid; child = alNodes.get(i).destSituation; } } if (type.equals(A)) { for (int j = 0; j alNodes.size(); j++) { if (alNodes.get(j).ruid == child) { return false; } } } else
Problems selecting a Cell in a CellTree
I've succeeded in displaying a dynamic Celltree from my database of nodes, but cannot figure out how to make the displayed TextCells clickable so that I may edit them, add additional children, etc. I admit I am rather a novice using the new Cell Widgets. Here is the stripped down code. I have left out the code that generates my arraylist of tree node (alNodes). Any help, thoughts or suggestions would be greatly appreciated. A simple example that popped a Window.alert when a TextCell was clicked would be more than sufficient! Perhaps a ClickableTextCell would work? private class CustomTreeModel implements TreeViewModel { public T NodeInfo? getNodeInfo(T value) { ListDataProviderString dataProvider = new ListDataProviderString(); String type = ; Integer parent = 0; Integer child = 0; // for the root of the tree if (value == null) { for (int i = 0; i alNodes.size(); i++) { if (alNodes.get(i).ruid == startnode alNodes.get(i).type == S) { dataProvider.getList().add(alNodes.get(i).title); break; } } } else { // get the current node info from alNodes ArrayList for (int i = 0; i alNodes.size(); i++) { if (alNodes.get(i).title.equals(value)) { type = alNodes.get(i).type; parent = alNodes.get(i).ruid; child = alNodes.get(i).destSituation; } } // Depending on the type of the current node, find the child or children for the dataprovider for the next level if (type.equals(A)) { for (int j = 0; j alNodes.size(); j++) { if (alNodes.get(j).ruid == child) { dataProvider.getList().add(alNodes.get(j).title); break; // Note that A type nodes will only have a single child } } } else { for (int j = 0; j alNodes.size(); j++) { if (alNodes.get(j).parentSituation == parent) { dataProvider.getList().add(alNodes.get(j).title); } } } } return new DefaultNodeInfoString(dataProvider, new TextCell()); } public boolean isLeaf(Object value) { String type = ; Integer parent = 0; Integer child = 0; for (int i = 0; i alNodes.size(); i++) { if (alNodes.get(i).title.equals(value)) { type = alNodes.get(i).type; parent = alNodes.get(i).ruid; child = alNodes.get(i).destSituation; } } if (type.equals(A)) { for (int j = 0; j alNodes.size(); j++) { if (alNodes.get(j).ruid == child) { return false; } } } else { for (int j = 0; j alNodes.size(); j++) { if (alNodes.get(j).parentSituation == parent) { return false; } } } return true; } } public void onModuleLoad() { Button button = new Button(Start Simulation Editor); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { TreeViewModel model = new CustomTreeModel(); CellTree tree = new CellTree(model, null);
Re: GWT Designer not available ...
The email address dev-tools-sa...@google.com is not valid. What is the actual email address to use? Regards... On Aug 31, 6:19 pm, Eric Clayberg clayb...@google.com wrote: GWT Designer, along with the other Instantiations products, is currently being Googlized (legal, branding, etc.) and will be available again in the future. We will make an announcement on the Google Web Toolkit Blog when we have more information to provide. All paid, registered users were sent an email last week containing information on how to contact Google's GWT Designer support and how to get access to the GWT Designer product itself. If you missed that email or it was grabbed by your spam filter, you can send a request to dev-tools-sa...@google.com (make sure to include your GWT Designer serial number). The product is not currently available for eval or purchase, but we are working hard to make it available again in the future. -Eric On Aug 31, 10:05 am, Kasper Hansen kbhdk1...@gmail.com wrote: I third that ;-) I also bought the awesome GWT Designer, and where did it go... ? On Tue, Aug 31, 2010 at 3:37 PM, dleins dle...@gmail.com wrote: I have the same problem. Can the old version at least be made available? On Aug 31, 6:14 am, norandom vincent.arc...@gmail.com wrote: Hi, I bought a license gwt designer a few months ago and now I need to install it again. But I can not download it from the site of instantiations since the purchase by google :-(. Hallo google !?!? How can I do? Do you plan to put it again online ? regards -- 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=en.
Re: GWT Designer not available ...
I have the same problem. Can the old version at least be made available? On Aug 31, 6:14 am, norandom vincent.arc...@gmail.com wrote: Hi, I bought a license gwt designer a few months ago and now I need to install it again. But I can not download it from the site of instantiations since the purchase by google :-(. Hallo google !?!? How can I do? Do you plan to put it again online ? regards -- 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=en.
Re: Working in development mode in GWT with php
I have ths exact problem with another JSON application using GWT 2.0. It works fine when compiled but the exact same code does not work in hosted mode. I am using SmartGWT, but do not think that is the problem... Doug On Jan 6, 7:35 pm, Skeezix skeezix6...@gmail.com wrote: also when I compile and deploy the compiled output (inside the war folder) to the server, it operates properly...hope someone can help me set this up properly so i can test/debug my app without recompiling and uploading it to the server On Jan 6, 4:59 pm, Skeezix skeezix6...@gmail.com wrote: Hi, I've recently started on the Client-Server Communication part of the tutorial of GWT.I've done everything that is said in the JSON and JSON - PHP part of the tutorial, yet im unable to get the JSON data from the php script.My setup uses XAMPP and the Stockwatcher project is located at C:\xampp\htdocs\...so that makes the host page at C:\xampp\htdocs\StockWatcher\war\ so is the stockPrices.php. When I run the app in dev mode the stock changes wont show and I get an exception..it says 16:53:00.079 [ERROR] [stockwatcher] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText] QueryInterface: function QueryInterface() { [native code]} result: 2147746065 filename:http://localhost: lineNumber: 48 columnNumber: 0 inner: null data: null initialize: function initialize() { [native code]} at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript (BrowserChannelServer.java:195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative (ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject (ModuleSpace.java:264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject (JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke (MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke (MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke (OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages (BrowserChannel.java:1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection (BrowserChannelServer.java:401) at com.google.gwt.dev.shell.BrowserChannelServer.run (BrowserChannelServer.java:222) at java.lang.Thread.run(Unknown Source) btw the JSON_URL that I used is http://localhost:8080/StockWatcher/ war/stockPrices.php?q=, since this is how I accessed the php script. Hope someone can help. -- 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=en.