]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes http://forum.itmill.com/posts/list/349.page
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 19 Dec 2007 07:17:19 +0000 (07:17 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 19 Dec 2007 07:17:19 +0000 (07:17 +0000)
svn changeset:3258/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IProgressIndicator.java

index 315f2ff19692c71bf4f90f20db2f48b42973363a..5845599cf58cab91790873ef07f18bcd7e86dbe7 100644 (file)
@@ -19,6 +19,7 @@ public class IProgressIndicator extends Widget implements Paintable {
     Element indicator = DOM.createDiv();
     private ApplicationConnection client;
     private final Poller poller;
+    private boolean indeterminate = false;
 
     public IProgressIndicator() {
         setElement(wrapper);
@@ -37,12 +38,11 @@ public class IProgressIndicator extends Widget implements Paintable {
         if (client.updateComponent(this, uidl, true)) {
             return;
         }
-        final boolean indeterminate = uidl.getBooleanAttribute("indeterminate");
+
+        indeterminate = uidl.getBooleanAttribute("indeterminate");
 
         if (indeterminate) {
-            // TODO put up some different image or something. For now, it
-            // looks like a determinate PI at 0.0 and ignores the value.
-            DOM.setStyleAttribute(indicator, "width", "0px");
+            this.setStyleName(CLASSNAME + "-indeterminate");
         } else {
             try {
                 final float f = Float.parseFloat(uidl