From: Joonas Lehtinen Date: Tue, 16 Sep 2008 12:12:54 +0000 (+0000) Subject: Deprecates TextField.setFormat() (and also fixes one bug in setFormat at the same... X-Git-Tag: 6.7.0.beta1~4152 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d455e68bf64af06b577b4efba4775350d8886f10;p=vaadin-framework.git Deprecates TextField.setFormat() (and also fixes one bug in setFormat at the same time) svn changeset:5415/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/TextField.java b/src/com/itmill/toolkit/ui/TextField.java index 741fb84589..5523b8d360 100644 --- a/src/com/itmill/toolkit/ui/TextField.java +++ b/src/com/itmill/toolkit/ui/TextField.java @@ -458,6 +458,7 @@ public class TextField extends AbstractField { * Gets the value formatter of TextField. * * @return the Format used to format the value. + * @deprecated */ public Format getFormat() { return format; @@ -469,9 +470,11 @@ public class TextField extends AbstractField { * @param format * the Format used to format the value. Null disables the * formatting. + * @deprecated */ public void setFormat(Format format) { this.format = format; + requestRepaint(); } protected boolean isEmpty() {