Beispiel #1
0
  /** {@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;
  }
Beispiel #2
0
 /** {@inheritDoc} */
 @Override
 public void setEnabled(final boolean enabled) {
   super.setEnabled(enabled);
   initialEnabledState = enabled;
 }