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