]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make ProgressInidcatorConnector use VProgressIndicator (#11925)
authorLeif Åstrand <leif@vaadin.com>
Thu, 30 May 2013 07:25:23 +0000 (10:25 +0300)
committerLeif Åstrand <leif@vaadin.com>
Thu, 30 May 2013 07:26:00 +0000 (10:26 +0300)
When ProgressBar was split out from ProgressIndicator,
ProgressIndicatorConnector was accidentally left inheriting the
VProgressBar widget from ProgressBarConnector instead of using its own
VProgressIndicator.

Change-Id: Ie7c5d3b68af871d5eb2a86f3d720af3b23048793

client/src/com/vaadin/client/ui/progressindicator/ProgressIndicatorConnector.java

index 9e14f082e0cb55e23e1167ac5b89b028928b4ab8..23b71868e054458ee75da8f3b15cfe42f0a0315c 100644 (file)
@@ -19,6 +19,7 @@ package com.vaadin.client.ui.progressindicator;
 import com.google.gwt.user.client.Timer;
 import com.vaadin.client.communication.StateChangeEvent;
 import com.vaadin.client.ui.VProgressBar;
+import com.vaadin.client.ui.VProgressIndicator;
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.progressindicator.ProgressIndicatorServerRpc;
 import com.vaadin.shared.ui.progressindicator.ProgressIndicatorState;
@@ -61,6 +62,11 @@ public class ProgressIndicatorConnector extends ProgressBarConnector {
         }
     }
 
+    @Override
+    public VProgressIndicator getWidget() {
+        return (VProgressIndicator) super.getWidget();
+    }
+
     @Override
     public void onUnregister() {
         super.onUnregister();