]> source.dussan.org Git - vaadin-framework.git/commitdiff
Splitted VPasswordField into Widget and Paintable.
authorJens Jansson <peppe@vaadin.com>
Tue, 31 Jan 2012 07:24:08 +0000 (09:24 +0200)
committerJens Jansson <peppe@vaadin.com>
Tue, 31 Jan 2012 07:24:08 +0000 (09:24 +0200)
src/com/vaadin/terminal/gwt/client/ui/VPasswordFieldPaintable.java [new file with mode: 0644]
src/com/vaadin/ui/PasswordField.java

diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPasswordFieldPaintable.java b/src/com/vaadin/terminal/gwt/client/ui/VPasswordFieldPaintable.java
new file mode 100644 (file)
index 0000000..f0d88a3
--- /dev/null
@@ -0,0 +1,24 @@
+package com.vaadin.terminal.gwt.client.ui;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.ui.Widget;
+import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.UIDL;
+
+public class VPasswordFieldPaintable extends VTextFieldPaintable {
+
+    @Override
+    public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
+        super.updateFromUIDL(uidl, client);
+    }
+
+    @Override
+    protected Widget createWidget() {
+        return GWT.create(VPasswordField.class);
+    }
+
+    @Override
+    public VPasswordField getWidgetForPaintable() {
+        return (VPasswordField) super.getWidgetForPaintable();
+    }
+}
index 99874147d50a18cdc9feeeb5ec4412e09c83ee66..d5be4f378d7e24faaf77da4ac1bb7cc6b46e70e6 100644 (file)
@@ -4,13 +4,13 @@
 package com.vaadin.ui;
 
 import com.vaadin.data.Property;
-import com.vaadin.terminal.gwt.client.ui.VPasswordField;
+import com.vaadin.terminal.gwt.client.ui.VPasswordFieldPaintable;
 
 /**
  * A field that is used to enter secret text information like passwords. The
  * entered text is not displayed on the screen.
  */
-@ClientWidget(VPasswordField.class)
+@ClientWidget(VPasswordFieldPaintable.class)
 public class PasswordField extends AbstractTextField {
 
     /**