本文整理了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
暂无
代码示例来源: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();
}
} );
}
}
内容来源于网络,如有侵权,请联系作者删除!