- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup
类的一些代码示例,展示了YesNoCancelPopup
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesNoCancelPopup
类的具体详情如下:
包路径:org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup
类名称:YesNoCancelPopup
暂无
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-project-client
private void executeWithConfirm(final String message,
final Command command) {
final Command yesCommand = command::execute;
final Command noCommand = () -> {
};
final YesNoCancelPopup popup =
YesNoCancelPopup.newYesNoCancelPopup(message,
null,
yesCommand,
noCommand,
noCommand);
popup.show();
}
代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client
private void showNotificationPopup(final String title,
final String message) {
YesNoCancelPopup popup = newNotificationPopup(title,
message);
popup.setClosable(false);
popup.clearScrollHeight();
popup.show();
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-datasource-mgmt-client
public void showYesNoPopup( final String title,
final String message,
final Command yesCommand,
final String yesButtonText,
final ButtonType yesButtonType,
final Command noCommand,
final String noButtonText,
final ButtonType noButtonType ) {
YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( title,
message,
yesCommand,
yesButtonText,
yesButtonType,
noCommand,
noButtonText,
noButtonType,
null,
null,
null );
yesNoCancelPopup.setClosable( false );
yesNoCancelPopup.show();
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client
@Override
public void confirmRemove(final Command command) {
final YesNoCancelPopup result = YesNoCancelPopup.newYesNoCancelPopup(getConfirmRemovePopupTitle(),
getConfirmRemovePopupMessage(),
command,
new Command() {
@Override
public void execute() {
}
}, null);
result.clearScrollHeight();
result.show();
}
代码示例来源:origin: org.uberfire/uberfire-ssh-client
@EventHandler("delete")
public void onDelete(ClickEvent event) {
YesNoCancelPopup popupup = YesNoCancelPopup.newYesNoCancelPopup(translationService.getTranslation(AppformerSSHConstants.SSHKeyEditorViewImplDelete),
translationService.getTranslation(AppformerSSHConstants.SSHKeyEditorViewImplDeleteMessage),
null, null, null,
() -> {
},
translationService.getTranslation(AppformerSSHConstants.SSHKeyEditorViewImplCancel),
ButtonType.DEFAULT,
() -> presenter.notifyDelete(),
translationService.getTranslation(AppformerSSHConstants.SSHKeyEditorViewImplDelete),
ButtonType.DANGER);
popupup.setSize(ModalSize.SMALL);
popupup.clearScrollHeight();
popupup.show();
}
}
代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client
protected YesNoCancelPopup newYesNoPopup(final String title,
final String message,
final Command yesCommand,
final Command noCommand) {
return YesNoCancelPopup.newYesNoCancelPopup(title,
message,
yesCommand,
noCommand,
null);
}
代码示例来源:origin: org.uberfire/uberfire-widgets-commons
@Override
public void onClick(ClickEvent event) {
getYesNoCancelPopup(safeHtmlGridHeader,
key).show();
}
});
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-datasource-mgmt-client
private static void showOkButtonPopup( final String title, final String message ) {
YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( title,
message,
new Command() {
@Override public void execute() {
}
},
CommonConstants.INSTANCE.OK(),
null,
null,
null,
null );
yesNoCancelPopup.setClosable( false );
yesNoCancelPopup.show();
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client
@Override
public void confirmRemove(final Command command) {
final YesNoCancelPopup result = YesNoCancelPopup.newYesNoCancelPopup(getTemplateRemovePopupTitle(),
getTemplateRemovePopupText(),
command,
new Command() {
@Override
public void execute() {
}
},
null);
result.clearScrollHeight();
result.show();
}
代码示例来源:origin: kiegroup/appformer
@EventHandler("delete")
public void onDelete(ClickEvent event) {
YesNoCancelPopup popupup = YesNoCancelPopup.newYesNoCancelPopup(translationService.getTranslation(AppformerSSHConstants.SSHKeyEditorViewImplDelete),
translationService.getTranslation(AppformerSSHConstants.SSHKeyEditorViewImplDeleteMessage),
null, null, null,
() -> {
},
translationService.getTranslation(AppformerSSHConstants.SSHKeyEditorViewImplCancel),
ButtonType.DEFAULT,
() -> presenter.notifyDelete(),
translationService.getTranslation(AppformerSSHConstants.SSHKeyEditorViewImplDelete),
ButtonType.DANGER);
popupup.setSize(ModalSize.SMALL);
popupup.clearScrollHeight();
popupup.show();
}
}
代码示例来源:origin: org.guvnor/guvnor-ala-ui-client
protected YesNoCancelPopup newYesNoPopup(final String title,
final String message,
final Command yesCommand,
final Command noCommand) {
return YesNoCancelPopup.newYesNoCancelPopup(title,
message,
yesCommand,
noCommand,
null);
}
代码示例来源:origin: kiegroup/appformer
@Override
public void onClick(ClickEvent event) {
getYesNoCancelPopup(safeHtmlGridHeader,
key).show();
}
});
代码示例来源:origin: org.uberfire/uberfire-widgets-security-management
@Override
public void show(String title,
String message,
Command yesCommand) {
YesNoCancelPopup.newYesNoCancelPopup(title,
message,
yesCommand,
null,
null).show();
}
}
代码示例来源:origin: org.uberfire/uberfire-asset-mgmt-client
public static void showDeletePopup(final String contentText,
final Command yesCommand) {
YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(CommonConstants.INSTANCE.Information(),
contentText,
yesCommand,
);
yesNoCancelPopup.setClosable(false);
yesNoCancelPopup.show();
代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client
public void showYesNoPopup(final String title,
final String message,
final Command yesCommand,
final Command noCommand) {
YesNoCancelPopup popup = newYesNoPopup(title,
message,
yesCommand,
noCommand);
popup.setClosable(false);
popup.clearScrollHeight();
popup.show();
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-workbench-client
public void error(final Throwable throwable) {
final YesNoCancelPopup result = YesNoCancelPopup.newYesNoCancelPopup(
DefaultWorkbenchConstants.INSTANCE.SessionTimeout(),
DefaultWorkbenchConstants.INSTANCE.InvalidBusResponseProbablySessionTimeout(),
});
result.clearScrollHeight();
result.show();
return;
代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client
protected YesNoCancelPopup newNotificationPopup(final String title,
final String message) {
return YesNoCancelPopup.newYesNoCancelPopup(title,
message,
() -> {
},
CommonConstants.INSTANCE.OK(),
null,
null,
null,
null);
}
}
代码示例来源:origin: kiegroup/appformer
@Test
public void testRemoveTab() throws Exception {
final Element element = mock(Element.class);
when(element.getStyle()).thenReturn(mock(Style.class));
when(button.getElement()).thenReturn(element);
when(button.addClickHandler(any(ClickHandler.class))).thenAnswer(new Answer() {
public Object answer(InvocationOnMock aInvocation) throws Throwable {
clickHandler = (ClickHandler) aInvocation.getArguments()[0];
return null;
}
});
final YesNoCancelPopup yesNoCancelPopup = mock(YesNoCancelPopup.class);
doReturn(yesNoCancelPopup).when(filterPagedTable).getYesNoCancelPopup(anyString(), anyString());
filterPagedTable.addTab(mock(PagedTable.class), "", mock(Command.class));
clickHandler.onClick(new ClickEvent() {
});
verify(yesNoCancelPopup).show();
verify(filterPagedTable, never()).removeTab(anyInt());
verify(filterPagedTable, never()).removeTab(anyString());
}
代码示例来源:origin: kiegroup/appformer
@Override
public void show(String title,
String message,
Command yesCommand) {
YesNoCancelPopup.newYesNoCancelPopup(title,
message,
yesCommand,
null,
null).show();
}
}
代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget
@UiHandler("unlock")
public void onForceUnlock(ClickEvent e) {
final YesNoCancelPopup yesNoCancelPopup =
YesNoCancelPopup.newYesNoCancelPopup(MetadataConstants.INSTANCE.ForceUnlockConfirmationTitle(),
MetadataConstants.INSTANCE.ForceUnlockConfirmationText(metadata.getLockInfo().lockedBy()),
new Command() {
@Override
public void execute() {
forceUnlockHandler.run();
unlock.setEnabled(false);
}
},
new Command() {
@Override
public void execute() {
}
},
null);
yesNoCancelPopup.setClosable(false);
yesNoCancelPopup.show();
}
}
本文整理了Java中org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup.show()方法的一些代码示例,展示了Y
本文整理了Java中org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup.clearScrollHeight()方
本文整理了Java中org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup.setClosable()方法的一些代码
本文整理了Java中org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup.newYesNoCancelPopup(
我是一名优秀的程序员,十分优秀!