width: 16px;
overflow: hidden; /* for IE6 */
}
-.i-progressindicator-disabled-indeterminate {
+
+/* Hide obsolete elements in indeterminate mode */
+.i-progressindicator-indeterminate .i-progressindicator-wrapper,
+.i-progressindicator-indeterminate .i-progressindicator-indicator,
+.i-progressindicator-indeterminate-disabled .i-progressindicator-wrapper,
+.i-progressindicator-indeterminate-disabled .i-progressindicator-indicator {
+ display: none;
+}
+
+.i-progressindicator-indeterminate-disabled {
background: #dfe2e4 url(../common/img/blank.gif);
height: 16px;
width: 16px;
width: 16px;
overflow: hidden; /* for IE6 */
}
-.i-progressindicator-disabled-indeterminate {
+
+/* Hide obsolete elements in indeterminate mode */
+.i-progressindicator-indeterminate .i-progressindicator-wrapper,
+.i-progressindicator-indeterminate .i-progressindicator-indicator,
+.i-progressindicator-indeterminate-disabled .i-progressindicator-wrapper,
+.i-progressindicator-indeterminate-disabled .i-progressindicator-indicator {
+ display: none;
+}
+
+.i-progressindicator-indeterminate-disabled {
background: #dfe2e4 url(common/img/blank.gif);
height: 16px;
width: 16px;
background: none !important;
border: none !important;
color: #222222 !important;
+}
+
+.dispnone {
+ display:none;
+}
+
+.redborder {
+ border: 1px solid red;
}
\ No newline at end of file
indeterminate = uidl.getBooleanAttribute("indeterminate");
- String style = CLASSNAME;
- if (uidl.getBooleanAttribute("disabled")) {
- style += "-disabled";
- }
-
if (indeterminate) {
- this.setStyleName(style + "-indeterminate");
+ String basename = CLASSNAME + "-indeterminate";
+ IProgressIndicator.setStyleName(getElement(), basename, true);
+ IProgressIndicator.setStyleName(getElement(), basename
+ + "-disabled", uidl.getBooleanAttribute("disabled"));
} else {
- setStyleName(style);
try {
final float f = Float.parseFloat(uidl
.getStringAttribute("state"));
}
});
+ final TextField tf2 = new TextField("Try to change me");
+ main.addComponent(tf2);
+
+ tf2.setImmediate(true);
+ tf2.addListener(new Property.ValueChangeListener() {
+
+ public void valueChange(ValueChangeEvent event) {
+ main.showNotification("New value = " + tf2);
+ }
+ });
+
}
}