private Element errorIndicatorElement;
+ private Icon icon;
+
private ErrorMessage errorMessage;
public ICheckBox() {
setTitle(uidl.getStringAttribute("description"));
}
+ if (uidl.hasAttribute("icon")) {
+ if (icon == null) {
+ icon = new Icon(client);
+ DOM.insertChild(getElement(), icon.getElement(), 1);
+ }
+ icon.setUri(uidl.getStringAttribute("icon"));
+ } else if (icon != null) {
+ // detach icon
+ DOM.removeChild(getElement(), icon.getElement());
+ icon = null;
+ }
+
// Set text
setText(uidl.getStringAttribute("caption"));
setChecked(uidl.getBooleanVariable("state"));