summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJens Jansson <peppe@vaadin.com>2012-01-31 09:24:08 +0200
committerJens Jansson <peppe@vaadin.com>2012-01-31 09:24:08 +0200
commitbcc43a315b1b64d12db2a5d6e9a782f8b6a51793 (patch)
tree0d08e50d2b56631c35ddea568a8ab5cae4bfe203 /src
parentb084368fd3e7aeb0ccd391f607bef3808c6af41e (diff)
downloadvaadin-framework-bcc43a315b1b64d12db2a5d6e9a782f8b6a51793.tar.gz
vaadin-framework-bcc43a315b1b64d12db2a5d6e9a782f8b6a51793.zip
Splitted VPasswordField into Widget and Paintable.
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VPasswordFieldPaintable.java24
-rw-r--r--src/com/vaadin/ui/PasswordField.java4
2 files changed, 26 insertions, 2 deletions
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
index 0000000000..f0d88a3002
--- /dev/null
+++ b/src/com/vaadin/terminal/gwt/client/ui/VPasswordFieldPaintable.java
@@ -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();
+ }
+}
diff --git a/src/com/vaadin/ui/PasswordField.java b/src/com/vaadin/ui/PasswordField.java
index 99874147d5..d5be4f378d 100644
--- a/src/com/vaadin/ui/PasswordField.java
+++ b/src/com/vaadin/ui/PasswordField.java
@@ -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 {
/**