overflow: hidden; /* for IE6 */
}
+.i-progressindicator-disabled {
+ background: #dfe2e4 url(img/disabled.gif);
+ height: 9px;
+ border: 1px solid #b6bbbc;
+ overflow: hidden; /* for IE6 */
+}
+
.i-progressindicator div {
background: #f7f9f9 url(img/progress.png);
height: 9px;
height: 16px;
width: 16px;
overflow: hidden; /* for IE6 */
+}
+.i-progressindicator-disabled-indeterminate {
+ background: #dfe2e4 url(../common/img/blank.gif);
+ height: 16px;
+ width: 16px;
+ overflow: hidden; /* for IE6 */
}
\ No newline at end of file
indeterminate = uidl.getBooleanAttribute("indeterminate");
+ String style = CLASSNAME;
+ if (uidl.getBooleanAttribute("disabled")) {
+ style += "-disabled";
+ }
+
if (indeterminate) {
- this.setStyleName(CLASSNAME + "-indeterminate");
+ this.setStyleName(style + "-indeterminate");
} else {
+ setStyleName(style);
try {
final float f = Float.parseFloat(uidl
.getStringAttribute("state"));
} catch (final Exception e) {
}
}
- poller.scheduleRepeating(uidl.getIntAttribute("pollinginterval"));
+
+ if (!uidl.getBooleanAttribute("disabled")) {
+ poller.scheduleRepeating(uidl.getIntAttribute("pollinginterval"));
+ }
+ }
+
+ public void setVisible(boolean visible) {
+ super.setVisible(visible);
+ if (!visible) {
+ poller.cancel();
+ }
}
class Poller extends Timer {
}
/**
- * Sets the ProgressIndicator to indeterminate mode.
+ * Sets wheter or not the ProgressIndicator is indeterminate.
*
* @param newValue
* true to set to indeterminate mode.
*/
public void setIndeterminate(boolean newValue) {
indeterminate = newValue;
+ requestRepaint();
+ }
+
+ /**
+ * Gets whether or not the ProgressIndicator is indeterminate.
+ *
+ * @return true to set to indeterminate mode.
+ */
+ public boolean isIndeterminate() {
+ return indeterminate;
}
/**
*/
public void setPollingInterval(int newValue) {
pollingInterval = newValue;
+ requestRepaint();
}
/**