org.drools.workbench.screens.scenariosimulation.client.popup.YesNoConfirmPopupView.show()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(91)

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

YesNoConfirmPopupView.show介绍

暂无

代码示例

代码示例来源:origin: kiegroup/drools-wb

@Override
public void show(final String title,
         final String inlineNotificationMessage,
         final InlineNotification.InlineNotificationType inlineNotificationType,
         final String okButtonText,
         final Button.ButtonStyleType okButtonType,
         final String confirmMessage,
         final Command okCommand) {
  yesNoConfirmPopupView.show(title, inlineNotificationMessage, inlineNotificationType, okButtonText, okButtonType, confirmMessage, okCommand);
}

代码示例来源:origin: kiegroup/drools-wb

@Override
public void show(final String title,
         final String okButtonText,
         final String confirmMessage,
         final Command okCommand) {
  show(title,
     null,
     null,
     okButtonText,
     Button.ButtonStyleType.DANGER,
     confirmMessage,
     okCommand);
}

代码示例来源:origin: kiegroup/drools-wb

@Override
public void show(String title, String inlineNotificationMessage, InlineNotification.InlineNotificationType inlineNotificationType, String yesButtonText, String noButtonText, Button.ButtonStyleType yesButtonType, Button.ButtonStyleType noButtonType, String confirmMessage, Command yesCommand, Command noCommand) {
  yesNoConfirmPopupView.show(title, inlineNotificationMessage, inlineNotificationType, yesButtonText, noButtonText, yesButtonType,  noButtonType, confirmMessage, yesCommand, noCommand);
}

代码示例来源:origin: kiegroup/drools-wb

@Override
public void show(final String title,
         final String yesButtonText,
         final String noButtonText,
         final String confirmMessage,
         final Command yesCommand,
         final Command noCommand) {
  show(title,
     null,
     null,
     yesButtonText,
     noButtonText,
     Button.ButtonStyleType.DANGER,
     Button.ButtonStyleType.DEFAULT,
     confirmMessage,
     yesCommand,
     noCommand);
}

代码示例来源:origin: kiegroup/drools-wb

@Test
public void showOkCancel() {
  yesNoConfirmPopupView.show(TITLE, OK_BUTTON_TEXT, CONFIRM_MESSAGE, okCommandMock);
  verify(yesNoConfirmPopupView, times(1)).show(TITLE, null, null, OK_BUTTON_TEXT, Button.ButtonStyleType.DANGER, CONFIRM_MESSAGE, okCommandMock);
  verify(yesNoConfirmPopupView, times(1)).commonShow(eq(TITLE), any(), any(), eq(CONFIRM_MESSAGE));
}

代码示例来源:origin: kiegroup/drools-wb

@Test
public void showYesNoCancel() {
  yesNoConfirmPopupView.show(TITLE, YES_BUTTON_TEXT, NO_BUTTON_TEXT, CONFIRM_MESSAGE, yesCommandMock, noCommandMock);
  verify(yesNoConfirmPopupView, times(1)).show(TITLE, null, null, YES_BUTTON_TEXT, NO_BUTTON_TEXT, Button.ButtonStyleType.DANGER, Button.ButtonStyleType.DEFAULT, CONFIRM_MESSAGE, yesCommandMock, noCommandMock);
  verify(yesNoConfirmPopupView, times(1)).commonShow(eq(TITLE), any(), any(), eq(CONFIRM_MESSAGE));
}

代码示例来源:origin: kiegroup/drools-wb

@Test
public void showYesNoCancelFull() {
  yesNoConfirmPopupPresenter.show(TITLE, INLINE_NOTIFICATION_MESSAGE, INLINE_NOTIFICATION_TYPE, YES_BUTTON_TEXT, NO_BUTTON_TEXT, BUTTON_STYLE_TYPE, BUTTON_STYLE_TYPE, CONFIRM_MESSAGE, yesCommandMock, noCommandMock);
  verify(yesNoConfirmPopupViewMock, times(1)).show(eq(TITLE), eq(INLINE_NOTIFICATION_MESSAGE), eq(INLINE_NOTIFICATION_TYPE), eq(YES_BUTTON_TEXT), eq(NO_BUTTON_TEXT), eq(BUTTON_STYLE_TYPE), eq(BUTTON_STYLE_TYPE), eq(CONFIRM_MESSAGE), eq(yesCommandMock), eq(noCommandMock));
}

代码示例来源:origin: kiegroup/drools-wb

@Test
public void showOkCancelFull() {
  yesNoConfirmPopupPresenter.show(TITLE, INLINE_NOTIFICATION_MESSAGE, INLINE_NOTIFICATION_TYPE, OK_BUTTON_TEXT, BUTTON_STYLE_TYPE, CONFIRM_MESSAGE, okCommandMock);
  verify(yesNoConfirmPopupViewMock, times(1)).show(eq(TITLE), eq(INLINE_NOTIFICATION_MESSAGE), eq(INLINE_NOTIFICATION_TYPE), eq(OK_BUTTON_TEXT), eq(BUTTON_STYLE_TYPE), eq(CONFIRM_MESSAGE), eq(okCommandMock));
}

代码示例来源:origin: kiegroup/drools-wb

@Test
public void showOkCancelFull() {
  yesNoConfirmPopupView.show(TITLE, INLINE_NOTIFICATION_MESSAGE, INLINE_NOTIFICATION_TYPE, OK_BUTTON_TEXT, BUTTON_STYLE_TYPE, CONFIRM_MESSAGE, okCommandMock);
  verify(okButtonMock, never()).hide();
  verify(okButtonMock, times(1)).show();
  verify(yesButtonMock, times(1)).hide();
  verify(noButtonMock, times(1)).hide();
  verify(okButtonMock, times(1)).setText(eq(OK_BUTTON_TEXT));
  verify(okButtonMock, times(1)).setButtonStyleType(eq(BUTTON_STYLE_TYPE));
  verify(yesNoConfirmPopupView, times(1)).commonShow(eq(TITLE), eq(INLINE_NOTIFICATION_MESSAGE), eq(INLINE_NOTIFICATION_TYPE), eq(CONFIRM_MESSAGE));
}

代码示例来源:origin: kiegroup/drools-wb

@Test
public void showYesNoCancelFull() {
  yesNoConfirmPopupView.show(TITLE, INLINE_NOTIFICATION_MESSAGE, INLINE_NOTIFICATION_TYPE, YES_BUTTON_TEXT, NO_BUTTON_TEXT, BUTTON_STYLE_TYPE, BUTTON_STYLE_TYPE, CONFIRM_MESSAGE, yesCommandMock, noCommandMock);
  verify(okButtonMock, times(1)).hide();
  verify(yesButtonMock, times(1)).show();
  verify(noButtonMock, times(1)).show();
  verify(yesButtonMock, never()).hide();
  verify(noButtonMock, never()).hide();
  verify(yesButtonMock, times(1)).setText(eq(YES_BUTTON_TEXT));
  verify(noButtonMock, times(1)).setText(eq(NO_BUTTON_TEXT));
  verify(yesButtonMock, times(1)).setButtonStyleType(eq(BUTTON_STYLE_TYPE));
  verify(noButtonMock, times(1)).setButtonStyleType(eq(BUTTON_STYLE_TYPE));
  verify(yesNoConfirmPopupView, times(1)).commonShow(eq(TITLE), eq(INLINE_NOTIFICATION_MESSAGE), eq(INLINE_NOTIFICATION_TYPE), eq(CONFIRM_MESSAGE));
}

相关文章