]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merged changes from 6.2 branch.
authorJohn Alhroos <john.ahlroos@itmill.com>
Wed, 10 Feb 2010 11:07:01 +0000 (11:07 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Wed, 10 Feb 2010 11:07:01 +0000 (11:07 +0000)
svn changeset:11245/svn branch:6.3

WebContent/VAADIN/themes/base/datefield/datefield.css
WebContent/VAADIN/themes/base/styles.css
src/com/vaadin/terminal/gwt/client/ui/VEmbedded.java
src/com/vaadin/terminal/gwt/client/ui/VNativeButton.java

index 720a80716f40fbff3e478999c73ab8dbacec1a60..fd2730bf24315e758b32c8e18af7da3f3ce82ea7 100644 (file)
@@ -51,6 +51,9 @@
 .v-datefield-time .v-label {
        display: inline;
 }
+.v-datefield-popup {
+       background: #fff;
+}
 /* Disabled by default
 .v-datefield-error .v-textfield,
 .v-datefield-error .v-datefield-calendarpanel {
index 28d412536e66acc45572e480b9df472ad7ac8b4b..af82ec079da428bf685c99c8931d6e6426355d1c 100644 (file)
@@ -528,6 +528,9 @@ div.v-app-loading {
 .v-datefield-time .v-label {
        display: inline;
 }
+.v-datefield-popup {
+       background: #fff;
+}
 /* Disabled by default
 .v-datefield-error .v-textfield,
 .v-datefield-error .v-datefield-calendarpanel {
index 7d69e5682aca4cf646a351568259e07aa389cdc2..ffd09dab2cbc452f618ccceb8998f1f113749be2 100644 (file)
@@ -140,6 +140,7 @@ public class VEmbedded extends HTML implements Paintable {
                     parameters.put("movie", getSrc(uidl, client));
                 }
 
+                // Add the parameters to the Object
                 for (String name : parameters.keySet()) {
                     html += "<param name=\"" + escapeAttribute(name)
                             + "\" value=\""
@@ -147,9 +148,15 @@ public class VEmbedded extends HTML implements Paintable {
                 }
 
                 html += "<embed src=\"" + getSrc(uidl, client) + "\" width=\""
-                        + width + "\" height=\"" + height + "\"></embed>";
+                        + width + "\" height=\"" + height + "\" ";
 
-                html += "</object>";
+                // Add the parameters to the Embed
+                for (String name : parameters.keySet()) {
+                    html += escapeAttribute(name) + "=\""
+                    + escapeAttribute(parameters.get(name)) + "\" ";
+                }
+
+                html += "></embed></object>";
                 setHTML(html);
             } else if (mime.equals("image/svg+xml")) {
                 String data;
index e544e1f9ce76c9e662531855d335e564eec967e2..ef7e1836989d5b7580eb2dea95eeb17c410091e5 100644 (file)
@@ -19,7 +19,7 @@ import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VTooltip;
 
-public class VNativeButton extends Button implements Paintable {
+public class VNativeButton extends Button implements Paintable, ClickHandler {
 
     public static final String CLASSNAME = "v-nativebutton";
 
@@ -48,18 +48,8 @@ public class VNativeButton extends Button implements Paintable {
         getElement().appendChild(captionElement);
         captionElement.setClassName(getStyleName() + "-caption");
 
-        addClickHandler(new ClickHandler() {
-            public void onClick(ClickEvent event) {
-                if (id == null || client == null) {
-                    return;
-                }
-                if (BrowserInfo.get().isSafari()) {
-                    VNativeButton.this.setFocus(true);
-                }
-                client.updateVariable(id, "state", true, true);
-                clickPending = false;
-            }
-        });
+        addClickHandler(this);
+
         sinkEvents(VTooltip.TOOLTIP_EVENTS);
         sinkEvents(Event.ONMOUSEDOWN);
         sinkEvents(Event.ONMOUSEUP);
@@ -179,4 +169,24 @@ public class VNativeButton extends Button implements Paintable {
         }
     }
 
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event
+     * .dom.client.ClickEvent)
+     */
+    public void onClick(ClickEvent event) {
+        if (id == null || client == null) {
+            return;
+        }
+
+        if (BrowserInfo.get().isSafari()) {
+            VNativeButton.this.setFocus(true);
+        }
+
+        client.updateVariable(id, "state", true, true);
+        clickPending = false;
+    }
+
 }