.i-filterselect-button:hover {
background-position: bottom left;
}
-.i-disabled .i-filterselect-button:hover {
+.i-disabled .i-filterselect-button:hover,
+.i-readonly .i-filterselect-button:hover {
background-position: top left;
}
.i-filterselect-button:hover {
background-position: bottom left;
}
-.i-disabled .i-filterselect-button:hover {
+.i-disabled .i-filterselect-button:hover,
+.i-readonly .i-filterselect-button:hover {
background-position: top left;
}
styleBuf.append(" ");
styleBuf.append("i-disabled");
}
+ if (uidl.getBooleanAttribute("readonly")) {
+ styleBuf.append(" ");
+ styleBuf.append("i-readonly");
+ }
// add additional styles as css classes, prefixed with component default
// stylename
paintableId = uidl.getId();
this.client = client;
- if (uidl.hasAttribute("disabled") || uidl.hasAttribute("readonly")) {
+ boolean readonly = uidl.hasAttribute("readonly");
+ boolean disabled = uidl.hasAttribute("disabled");
+
+ if (disabled || readonly) {
tb.setEnabled(false);
enabled = false;
} else {