/** {@inheritDoc} */ @Override public void setLoading(final boolean loading) { if (!this.loading && loading) { super.setEnabled(false); replaceIcon(IconImageBundle.ICONS.loading()); } else if (this.loading && !loading) { super.setEnabled(initialEnabledState); setIcon(getIcon()); } this.loading = loading; }
/** {@inheritDoc} */ @Override public void setEnabled(final boolean enabled) { super.setEnabled(enabled); initialEnabledState = enabled; }