From: Jens Jansson Date: Tue, 31 Jan 2012 07:24:08 +0000 (+0200) Subject: Splitted VPasswordField into Widget and Paintable. X-Git-Tag: 7.0.0.alpha2~511^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bcc43a315b1b64d12db2a5d6e9a782f8b6a51793;p=vaadin-framework.git Splitted VPasswordField into Widget and Paintable. --- 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 { /**