com.extjs.gxt.ui.client.widget.button.Button.disable()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(178)

本文整理了Java中com.extjs.gxt.ui.client.widget.button.Button.disable()方法的一些代码示例,展示了Button.disable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.disable()方法的具体详情如下:
包路径:com.extjs.gxt.ui.client.widget.button.Button
类名称:Button
方法名:disable

Button.disable介绍

暂无

代码示例

代码示例来源:origin: geoserver/geofence

/**
 * Disable buttons.
 */
public void disableButtons()
{
  this.deleteUser.disable();
  this.updateUser.disable();
  this.getAOIs.disable();
  this.getFeatures.disable();
}

代码示例来源:origin: geoserver/geofence

/**
 * Disable save button.
 */
public void disableSaveButton()
{
  if (this.saveLayerDetailsButton.isEnabled())
  {
    this.saveLayerDetailsButton.disable();
  }
}

代码示例来源:origin: geoserver/geofence

/**
 * Disable save button.
 */
public void disableSaveButton()
{
  if (this.saveUserDetailsButton.isEnabled())
  {
    this.saveUserDetailsButton.disable();
  }
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
public void beforeRequest() {
  saveButton.disable();
  discardButton.disable();
  asyncCallCancelled = false;
  status.setBusyText(I18N.CONSTANTS.saving());
}

代码示例来源:origin: geoserver/geofence

/**
 * Disable save button.
 */
public void disableSaveButton()
{
  if (this.saveLayerDetailsButton.isEnabled())
  {
    this.saveLayerDetailsButton.disable();
  }
}

代码示例来源:origin: geoserver/geofence

/**
 * Clear grid elements.
 */
public void clearGridElements()
{
  this.store.removeAll();
  this.saveRuleAttributesButton.disable();
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
  public void componentSelected(ButtonEvent ce) {
    finishButton.disable();
    if (validateSections()) {
      saveLocation();
    } else {
      finishButton.enable();
    }
  }
});

代码示例来源:origin: bedatadriven/activityinfo

@Override
public void beforeRequest() {
  form.disable();
  saveButton.disable();
  cancelButton.disable();
  asyncCallCancelled = false;
  status.setBusyText(workingText);
}

代码示例来源:origin: geoserver/geofence

@Override
public void loaderBeforeLoad(LoadEvent le)
{
  searchStatus.setBusy("Connection to the Server");
  if (select.isEnabled())
  {
    select.disable();
  }
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
public boolean onRetrying() {
  if (asyncCallCancelled) {
    return false;
  }
  cancelButton.disable();
  status.setBusyText(I18N.CONSTANTS.retrying());
  return true;
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
public boolean onRetrying() {
  if (asyncCallCancelled) {
    return false;
  }
  cancelButton.disable();
  status.setBusyText(I18N.CONSTANTS.retrying());
  return true;
}

代码示例来源:origin: geoserver/geofence

public void handleEvent(BaseEvent be) {
    if (!grid.getSelectionModel().getSelection().isEmpty())
      select.enable();
    else
      select.disable();
  }
});

代码示例来源:origin: com.isotrol.impe3/impe3-gui-common

@Override
  public void storeRemove(StoreEvent<ModelData> se) {
    if (store.getCount() == 0) {
      bRemoveAll.disable();
    }
    setDirty(true);
    fireEvent(Events.Change);
  }
});

代码示例来源:origin: geoserver/geofence

/**
 * Reset.
 */
public void reset() {
  this.search.reset();
  this.store.removeAll();
  this.toolBar.clear();
  this.select.disable();
  this.searchStatus.clearStatus("");
}

代码示例来源:origin: com.isotrol.impe3/impe3-gui-common

/**
 * Enables or disables the passed button, according to the <code>dirty</code> and <code>valid</code> states of the
 * passed detail panel.<br/>
 * 
 * @param button the "Accept" button
 * @param detailPanel the detail panel.
 */
private void maybeEnableButton(Button button, IDetailPanel detailPanel) {
  if (detailPanel.isValid() && (!detailPanel.isEdition() || detailPanel.isDirty())) {
    button.enable();
  } else {
    button.disable();
  }
}

代码示例来源:origin: geoserver/geofence

/**
 * On selection change.
 * 
 * @param be
 *            the be
 */
private void onSelectionChange(SelectionChangedEvent<T> be) {
  if (!be.getSelection().isEmpty()) {
    detailTp.overwrite(details.getElement(), Util.getJsObject(be.getSelection().get(0)));
    ok.enable();
  } else {
    ok.disable();
    details.el().setInnerHtml("");
  }
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
  public void handleEvent(BaseEvent be) {
    if (searchPresenter.getSelection() == null) {
      useLocationButton.disable();
    } else {
      useLocationButton.enable();
      useLocationButton.setText(I18N.MESSAGES.useLocation(searchPresenter.getSelection().getName()));
    }
  }
});

代码示例来源:origin: geoserver/geofence

/**
 * Reset.
 */
public void reset() {
  this.search.reset();
  this.store.removeAll();
  this.toolBar.clear();
  this.toolBar.disable();
  ok.disable();
  view.getSelectionModel().deselectAll();
  this.searchStatus.clearStatus("");
}

代码示例来源:origin: geoserver/geofence

this.ok.disable();

代码示例来源:origin: geoserver/geofence

login.disable();
login.addSelectionListener(new SelectionListener<ButtonEvent>()

相关文章