}
- setWidgetEnabled(isEnabled());
/*
* Disabled state may affect (override) tabindex so the order must be
* first setting tabindex, then enabled state.
.getTabIndex());
}
+ setWidgetEnabled(isEnabled());
+
// Style names
String styleName = getStyleNames(getWidget().getStylePrimaryName());
getWidget().setStyleName(styleName);
public void setWidgetEnabled(boolean widgetEnabled) {
if (getWidget() instanceof HasEnabled) {
- HasEnabled hasEnabled = (HasEnabled) getWidget();
- if (hasEnabled.isEnabled() != widgetEnabled) {
- hasEnabled.setEnabled(widgetEnabled);
- }
+ ((HasEnabled) getWidget()).setEnabled(widgetEnabled);
}
}