]> source.dussan.org Git - vaadin-framework.git/commitdiff
Deprecates TextField.setFormat() (and also fixes one bug in setFormat at the same...
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 16 Sep 2008 12:12:54 +0000 (12:12 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 16 Sep 2008 12:12:54 +0000 (12:12 +0000)
svn changeset:5415/svn branch:trunk

src/com/itmill/toolkit/ui/TextField.java

index 741fb84589d2e99a29907946f6f6009fda29ecd0..5523b8d36053034692a3d83be6e86052072682b8 100644 (file)
@@ -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() {