本文整理了Java中com.vaadin.ui.Button.equals()
方法的一些代码示例,展示了Button.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.equals()
方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称:Button
方法名:equals
暂无
代码示例来源:origin: eclipse/hawkbit
private boolean isButtonUnClicked(final Button clickedButton) {
return alreadyClickedButton != null && alreadyClickedButton.equals(clickedButton);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private boolean isButtonUnClicked(final Button clickedButton) {
return alreadyClickedButton != null && alreadyClickedButton.equals(clickedButton);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void buttonClick(ClickEvent event) {
if (event.getButton().equals(save)) {
if (editor.isReadOnly()) {
Notification.show("Unsupported action for readOnly viewer.", Notification.Type.WARNING_MESSAGE);
} else {
editor.commit();
logger.info("The file " + file + " has been changed.");
}
}
if (event.getButton().equals(cancel)) {
if (!editor.isReadOnly())
logger.info("The file editing has been canceled.");
editor.discard();
}
close();
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void onCloseEvent(final ClickEvent clickEvent) {
if (!clickEvent.getButton().equals(saveButton)) {
close();
return;
}
if (!closeListener.canWindowSaveOrUpdate()) {
return;
}
closeListener.saveOrUpdate();
if (closeListener.canWindowClose()) {
close();
}
}
代码示例来源:origin: eclipse/hawkbit
private void onCloseEvent(final ClickEvent clickEvent) {
if (!clickEvent.getButton().equals(saveButton)) {
close();
return;
}
if (!closeListener.canWindowSaveOrUpdate()) {
return;
}
closeListener.saveOrUpdate();
if (closeListener.canWindowClose()) {
close();
}
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void buttonClick(Button.ClickEvent event) {
if (buttonPanel.getNext().equals(event.getButton())) {
if (!configForm.configFieldGroup.isValid()) {
UIHelper.showValidationError(
"There are still errors on this page. You cannot continue. Please check if all required fields have been filled.");
return;
}
try {
configForm.configFieldGroup.commit();
app.updateView(UiState.MbeansDetection);
} catch (FieldGroup.CommitException e) {
UIHelper.showNotification("An unexpected error occurred.");
}
}
}
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void buttonClick(final ClickEvent event) {
if (event.getButton().equals(buttonPanel.getPrevious())) {
app.updateView(UiState.ServiceConfigurationView);
if (event.getButton().equals(buttonPanel.getNext())) {
代码示例来源:origin: tepi/FilteringTable
ClickListener buttonClickHandler = event -> updateValue(clear.equals(event.getButton()));
set.addClickListener(buttonClickHandler);
clear.addClickListener(buttonClickHandler);
内容来源于网络,如有侵权,请联系作者删除!