summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-11-03 09:07:32 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-11-03 09:07:32 +0000
commit6f0ac065787bcde54260cb0b0fdb3533a84f2b0c (patch)
tree4e46f750656844e0faec26811c2edaaf70d1e782 /src
parent6d4db41f6b04ffe4810292e5e4c47e5c91ded827 (diff)
downloadvaadin-framework-6f0ac065787bcde54260cb0b0fdb3533a84f2b0c.tar.gz
vaadin-framework-6f0ac065787bcde54260cb0b0fdb3533a84f2b0c.zip
merged [9596] from 6.1
svn changeset:9597/svn branch:6.2
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java b/src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java
index 58d4d5c021..ab9f20bcc3 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java
@@ -21,6 +21,7 @@ public class VProgressIndicator extends Widget implements Paintable {
private final Poller poller;
private boolean indeterminate = false;
private boolean pollerSuspendedDueDetach;
+ private int interval;
public VProgressIndicator() {
setElement(DOM.createDiv());
@@ -33,12 +34,10 @@ public class VProgressIndicator extends Widget implements Paintable {
}
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
- if (client.updateComponent(this, uidl, true)) {
- return;
- }
-
- poller.cancel();
this.client = client;
+ if (!uidl.getBooleanAttribute("cached")) {
+ poller.cancel();
+ }
if (client.updateComponent(this, uidl, true)) {
return;
}
@@ -61,7 +60,8 @@ public class VProgressIndicator extends Widget implements Paintable {
}
if (!uidl.getBooleanAttribute("disabled")) {
- poller.scheduleRepeating(uidl.getIntAttribute("pollinginterval"));
+ interval = uidl.getIntAttribute("pollinginterval");
+ poller.scheduleRepeating(interval);
}
}
@@ -69,7 +69,7 @@ public class VProgressIndicator extends Widget implements Paintable {
protected void onAttach() {
super.onAttach();
if (pollerSuspendedDueDetach) {
- poller.run();
+ poller.scheduleRepeating(interval);
}
}