]> source.dussan.org Git - vaadin-framework.git/commitdiff
updated to work with GWT 1.4.59
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 21 Aug 2007 07:24:02 +0000 (07:24 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 21 Aug 2007 07:24:02 +0000 (07:24 +0000)
svn changeset:2075/svn branch:trunk

Hosted Mode Browser Linux.launch
Hosted Mode Browser Mac.launch
Hosted Mode Browser Win.launch
build/bin/compile-gwt-components
build/bin/compile-gwt-components.bat
src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java
src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java

index ea7dbb5a5a4533a1e1f5ad312910d6b6f15361d5..085a3a2ddee6e589dc8b02f75aa0297ee3801275 100644 (file)
@@ -8,8 +8,8 @@
 </listAttribute>
 <listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;GwtClient&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/build/gwt/gwt-linux-1.4.10/gwt-user.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/build/gwt/gwt-linux-1.4.10/gwt-dev-linux.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/build/gwt/gwt-linux-1.4.59/gwt-user.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/build/gwt/gwt-linux-1.4.59/gwt-dev-linux.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/src&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
 </listAttribute>
 <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-noserver -whitelist &quot;127.0.01  ^http[:][/][/]127[.]0[.]0[.]1[:]8080&quot; -logLevel ALL -out WebContents/gwt -style PRETTY  http://127.0.0.1:8080/tk/com.itmill.toolkit.terminal.gwt.Client/gwt-test.html"/>
index 00f1937e0b8b8757db3e47483d86509eb1e7a194..adbefe0c327f7a8b8e421ed049582692edae6db2 100644 (file)
@@ -8,11 +8,11 @@
 </listAttribute>
 <listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;GwtClient&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/build/gwt/gwt-mac-1.4.10/gwt-user.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/build/gwt/gwt-mac-1.4.10/gwt-dev-mac.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/build/gwt/gwt-mac-1.4.59/gwt-user.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/build/gwt/gwt-mac-1.4.59/gwt-dev-mac.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/tk-trunk/src&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
 </listAttribute>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-noserver -whitelist &quot;127.0.01  ^http[:][/][/]127[.]0[.]0[.]1[:]8080&quot; -logLevel ALL -out WebContents/gwt -style PRETTY  http://127.0.0.1:8080/tk/com.itmill.toolkit.terminal.gwt.Client/gwt-test.html"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-noserver -whitelist &quot;127.0.0.1  ^http[:][/][/]127[.]0[.]0[.]1[:]8080&quot; -logLevel ALL -out WebContents/gwt -style PRETTY  http://127.0.0.1:8080/tk/com.itmill.toolkit.terminal.gwt.Client/gwt-test.html"/>
 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="tk-trunk"/>
 <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-XstartOnFirstThread"/>
 <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
index 22d1591a15735bf241e81abaad3aef4731fbca25..b7d9546a03f8b79ee2d19e39fe17b30cc1a4ca12 100644 (file)
@@ -8,8 +8,8 @@
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;itmill-toolkit&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>\r
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;itmill-toolkit&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>\r
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/itmill-toolkit/src&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>\r
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/itmill-toolkit/build/gwt/gwt-windows-1.3.3/gwt-dev-windows.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>\r
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/itmill-toolkit/build/gwt/gwt-windows-1.3.3/gwt-user.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>\r
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/itmill-toolkit/build/gwt/gwt-windows-1.4.59/gwt-dev-windows.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>\r
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/itmill-toolkit/build/gwt/gwt-windows-1.4.59/gwt-user.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>\r
 </listAttribute>\r
 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="itmill-toolkit"/>\r
 <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>\r
index a5d9e6649408f7a0b2889455e45427dcdebbadc3..619840ef9f3a1909065013f4c76b025995f5c47c 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-java -XstartOnFirstThread -cp "../../src:$APPDIR/bin:../gwt/gwt-mac-1.3.3/gwt-user.jar:../gwt/gwt-mac-1.3.3/gwt-dev-mac.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent" "$@" com.itmill.toolkit.terminal.gwt.Client;
+java -XstartOnFirstThread -cp "../../src:$APPDIR/bin:../gwt/gwt-mac-1.4.59/gwt-user.jar:../gwt/gwt-mac-1.4.59/gwt-dev-mac.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent" "$@" com.itmill.toolkit.terminal.gwt.Client;
index 0a84e55e68d58a8a924572042cf19c92ba9d5ae6..f1325b81e3ff801bf9c480d8ebd81253704a3103 100644 (file)
@@ -1 +1 @@
-@java -cp "%~dp0\../../src;%~dp0\bin;%~dp0\../gwt/gwt-windows-1.3.3/gwt-user.jar;%~dp0\../gwt/gwt-windows-1.3.3/gwt-dev-windows.jar" com.google.gwt.dev.GWTCompiler -out "%~dp0\../../WebContent" %* com.itmill.toolkit.terminal.gwt.Client
\ No newline at end of file
+@java -cp "%~dp0\../../src;%~dp0\bin;%~dp0\../gwt/gwt-windows-1.4.59/gwt-user.jar;%~dp0\../gwt/gwt-windows-1.4.59/gwt-dev-windows.jar" com.google.gwt.dev.GWTCompiler -out "%~dp0\../../WebContent" %* com.itmill.toolkit.terminal.gwt.Client
\ No newline at end of file
index 298807937951e06cd5943014f0502c98cee258a9..9201b4d85fecf3b5a55b78a04ddd2a665146b9f4 100755 (executable)
@@ -16,7 +16,6 @@ import com.google.gwt.json.client.JSONObject;
 import com.google.gwt.json.client.JSONParser;
 import com.google.gwt.json.client.JSONString;
 import com.google.gwt.json.client.JSONValue;
-import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.FocusListener;
 import com.google.gwt.user.client.ui.FocusWidget;
 import com.google.gwt.user.client.ui.HasWidgets;
@@ -24,7 +23,6 @@ import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ui.IContextMenu;
 import com.itmill.toolkit.terminal.gwt.client.ui.IView;
-import com.itmill.toolkit.terminal.gwt.client.ui.IWindow;
 
 /**
  * Entry point classes define <code>onModuleLoad()</code>.
index 05d10eb9975d0c304146ec25e6bfb8ad58edf22b..9a41127abb4f56d80215d18e0224dd2d486f15aa 100644 (file)
@@ -307,8 +307,9 @@ public class ICustomLayout extends ComplexPanel implements Paintable, Layout {
                if (cw != null) {
                        widgetToCaptionWrapper.remove(w);
                        return super.remove(cw);
-               } else 
+               } else if(w != null)
                        return super.remove(w);
+               return false;
        }
 
        /** Adding widget without specifying location is not supported */
index 534851672a17743192f93595a6583827f478380b..56078a53a1e4f14d01e223d82ec0f64232b0b249 100644 (file)
@@ -186,12 +186,13 @@ public abstract class IOrderedLayout extends ComplexPanel implements Layout {
                        // captions go into same container element as their
                        // owners
                        Element container = DOM.getParent(((UIObject) c.getOwner()).getElement());
-                       DOM.insertChild(container, w.getElement(), 0);
-                       insert(w, null, beforeIndex);
+                       Element captionContainer = DOM.createDiv();
+                       DOM.insertChild(container, captionContainer, 0);
+                       insert(w, captionContainer, beforeIndex, false);
                } else {
                        Element container = createWidgetWrappper();
                        DOM.insertChild(childContainer, container, beforeIndex);
-                       insert(w, container, beforeIndex);
+                       insert(w, container, beforeIndex, false);
                }
        }
        
index c21ba67a3d13aaeb8300bdbcedd97d46a5cbecd3..a62a140fb277c5fa5437030784e74da3c85046ba 100644 (file)
@@ -87,11 +87,11 @@ public class ITabsheet extends TabPanel implements Paintable {
                                        Widget content = client.getWidget(tab
                                                        .getChildUIDL(0));
                                        tb.selectTab(index);
-                                       dp.remove(index);
-                                       dp.insert(content, index);
+                                       remove(index);
+                                       insert(content, (String) captions.get(index), index);
                                        ((Paintable)content).updateFromUIDL(tab
                                                        .getChildUIDL(0), client);
-                                       dp.showWidget(index);
+                                       this.selectTab(index);
                                }
                                index++;
                        }
index 472a7764bcee322de32f871eb33e14a46f9bf832..aca8345453639decc938b3653be35d18cebacf20 100644 (file)
@@ -120,7 +120,7 @@ public class ITree extends Tree implements Paintable {
                                if (!selectable) return;
                                String key = n.key;
                                if (key != null) {
-                                       if(selectedIds.contains(key)) {
+                                       if(selectedIds.contains(key) && multiselect) {
                                                selectedIds.remove(key);
                                                n.setISelected(false);
                                        } else {
index 27f8f7594256efbb07a622b218ef0c65a7effb62..3366ef49c5a6538e7f1371e1702362165a1fd7c9 100644 (file)
@@ -429,11 +429,8 @@ public class ApplicationServlet extends HttpServlet {
                page
                                .write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
                                                + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
-
-               
                
                page.write("<html>\n<head>\n<title>IT Mill Toolkit 5</title>\n" +
-                               "<meta name='gwt:module' content='"+ (hasSlash ? "../" : "") +"com.itmill.toolkit.terminal.gwt.Client=com.itmill.toolkit.terminal.gwt.Client'>\n" +
                                "<script type=\"text/javascript\">\n" +
                                "       var itmtk = {\n" +
                                "               appUri:'");
@@ -453,16 +450,19 @@ public class ApplicationServlet extends HttpServlet {
                
                page.write("'\n};\n" +
                                "</script>\n" +
+                               
+                               "<script language='javascript' src='"+ (hasSlash ? "../" : "") + "com.itmill.toolkit.terminal.gwt.Client/com.itmill.toolkit.terminal.gwt.Client.nocache.js'></script>" +
+
                                "<link REL=\"stylesheet\" TYPE=\"text/css\" HREF=\""+request.getContextPath() + THEME_DIRECTORY_PATH+themeName+"/style.css\">" + 
-                               "</head>\n<body>\n<script language=\"javascript\" src=\""+ (hasSlash ? "../" : "") +"com.itmill.toolkit.terminal.gwt.Client/gwt.js\"></script>\n" +
+                               "</head>\n<body>\n" +
                                "       <iframe id=\"__gwt_historyFrame\" style=\"width:0;height:0;border:0\"></iframe>\n" +
                                "       <div id=\"itmtk-ajax-window\"></div>" +
-                               "       <div style=\"position: absolute; right: 5px; top: 5px; color: gray;\"><strong>IT Mill Toolkit 5 Prototype</strong></div>\n" + 
                                "       </body>\n" + 
                                "</html>\n");
        
 
                page.close();
+
        }
 
        /**