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

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

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

Button.enable介绍

暂无

代码示例

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

/**
 * Enable buttons.
 */
public void enableButtons()
{
  this.deleteUser.enable();
  this.updateUser.enable();
  this.getAOIs.enable();
  this.getFeatures.enable();
}

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

@Override
  public void onCompleted() {
    status.clearStatus();
    form.enable();
    saveButton.enable();
    cancelButton.enable();
  }
}

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

/**
 * Enable save button.
 */
public void enableSaveButton()
{
  if (!this.saveLayerDetailsButton.isEnabled())
  {
    this.saveLayerDetailsButton.enable();
  }
}

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

/**
 * Enable save button.
 */
public void enableSaveButton()
{
  if (!this.saveUserDetailsButton.isEnabled())
  {
    this.saveUserDetailsButton.enable();
  }
}

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

/**
 * Enable save button.
 */
public void enableSaveButton()
{
  if (!this.saveLayerDetailsButton.isEnabled())
  {
    this.saveLayerDetailsButton.enable();
  }
}

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

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

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

@Override
public void storeAdd(StoreEvent<ModelData> se) {
  bRemoveAll.enable();
  setDirty(true);
  fireEvent(Events.Change);
}
@Override

代码示例来源:origin: pl.touk.top/file-upload-gwtclient-lib

public void onResponseReceived(Request request, Response response) {
  messageListener.debug("Controller is active", "Ping sent to the controller. Response received: " + response.getStatusText());
  fileUploadButton.enable();
}

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

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

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

@Override
public void onServerError(Throwable e) {
  saveButton.enable();
  cancelButton.enable();
  status.clearStatus();
  MessageBox.alert(this.getHeadingHtml(), SafeHtmlUtils.fromSafeConstant(I18N.CONSTANTS.serverError()), null);
}

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

@Override
public void onServerError(Throwable e) {
  form.enable();
  saveButton.enable();
  cancelButton.enable();
  status.clearStatus();
  MessageBox.alert(this.getHeadingHtml(), fromSafeConstant(I18N.CONSTANTS.serverError()), null);
}

代码示例来源: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

private void showError(Throwable caught) {
    finishButton.enable();
    if (caught != null && caught instanceof IllegalAccessCommandException) {
      MessageBox.alert(I18N.CONSTANTS.dataEntry(), I18N.CONSTANTS.notAuthorized(), null);
    } else {
      MessageBox.alert(I18N.CONSTANTS.dataEntry(), I18N.CONSTANTS.serverError(), null);
    }
  }
}

代码示例来源: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()));
    }
  }
});

相关文章