com.google.gwt.user.client.ui.Button.isEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(126)

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

Button.isEnabled介绍

暂无

代码示例

代码示例来源:origin: oVirt/ovirt-engine

@Override
public boolean isEnabled() {
  return dropdownButton.isEnabled();
}

代码示例来源:origin: org.jboss.ballroom/widgets

@Override
public boolean isEnabled() {
  return button.isEnabled();
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client

@Override
public void onEnterPress(NativeEvent evt) {
 if (accept.isEnabled()) {
  accept.click();
 }
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@UiHandler({"factoryName"})
public void onProjectNameChanged(KeyUpEvent event) {
 if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER && createFactoryButton.isEnabled()) {
  delegate.onCreateClicked();
 } else {
  String name = factoryName.getValue();
  if (!Strings.isNullOrEmpty(name) && FACTORY_NAME_PATTERN.test(name)) {
   name = name.replaceAll("[^A-Za-z0-9_]", "-");
   factoryName.setValue(name);
  }
  delegate.onFactoryNameChanged(name);
 }
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@Override
public void onEnterPress(NativeEvent evt) {
 if (isWidgetOrChildFocused(saveButton)) {
  delegate.onSaveClicked();
 } else if (isWidgetOrChildFocused(nextStepButton)) {
  delegate.onNextClicked();
 } else if (isWidgetOrChildFocused(previousStepButton)) {
  delegate.onBackClicked();
 }
 if (nextStepButton.isEnabled()) {
  delegate.onNextClicked();
 } else if (saveButton.isEnabled()) {
  delegate.onSaveClicked();
 }
}

代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt

@Override
protected void setButtonState() {
  hideAndShowCorrectButtons();
  // TODO double check why we need to check for enabled
  if ( buttonPanel.getSaveButton().isEnabled() ) {
    buttonPanel.getSaveButton().addClickHandler( new ClickHandler() {
      @Override
      public void onClick(final ClickEvent event) {
        save( false );
      }
    } );
  }
  if ( buttonPanel.getSaveAndShareButton().isEnabled() ) {
    buttonPanel.getSaveAndShareButton().addClickHandler( new ClickHandler() {
      @Override
      public void onClick(final ClickEvent event) {
        save( true );
      }
    } );
  }
  if ( buttonPanel.getCancelButton().isEnabled() ) {
    buttonPanel.getCancelButton().addClickHandler( new ClickHandler() {
      @Override
      public void onClick(final ClickEvent event) {
        cancel();
      }
    } );
  }
}

相关文章