Accessibility.removeState(getElement(),
Accessibility.STATE_PRESSED);
super.setTabIndex(-1);
- addStyleName("v-disabled");
+ addStyleName(ApplicationConnection.DISABLED_CLASSNAME);
} else {
Accessibility.setState(getElement(),
Accessibility.STATE_PRESSED, "false");
super.setTabIndex(tabIndex);
- removeStyleName("v-disabled");
+ removeStyleName(ApplicationConnection.DISABLED_CLASSNAME);
}
}
}
}
if (uidl.hasAttribute("disabled")) {
- styles.add("v-disabled");
+ styles.add(ApplicationConnection.DISABLED_CLASSNAME);
}
return styles.toArray(new String[styles.size()]);
public void updateCaption(UIDL uidl) {
setVisible(!uidl.getBooleanAttribute("invisible"));
- setStyleName(getElement(), "v-disabled",
+ setStyleName(getElement(),
+ ApplicationConnection.DISABLED_CLASSNAME,
uidl.hasAttribute("disabled"));
boolean isEmpty = true;
boolean enabled = !opUidl.getBooleanAttribute("disabled")\r
&& !isReadonly() && !isDisabled();\r
op.setEnabled(enabled);\r
- setStyleName(op.getElement(), "v-disabled", !enabled);\r
+ setStyleName(op.getElement(),\r
+ ApplicationConnection.DISABLED_CLASSNAME, !enabled);\r
op.addClickHandler(this);\r
optionsToKeys.put(op, opUidl.getStringAttribute("key"));\r
panel.add(op);\r