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

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

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

YesNoConfirmPopupView.hide介绍

暂无

代码示例

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

@Override
  public void hide() {
    yesNoConfirmPopupView.hide();
  }
}

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

@EventHandler("confirm-close")
public void onCloseClick(final @ForEvent("click") MouseEvent event) {
  hide();
}

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

@EventHandler("confirm-cancel")
public void onCancelClick(final @ForEvent("click") MouseEvent event) {
  hide();
}

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

@EventHandler("confirm-no")
public void onNoClick(final @ForEvent("click") MouseEvent event) {
  if (noCommand != null) {
    noCommand.execute();
  }
  this.hide();
}

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

@EventHandler("confirm-ok")
public void onOkClick(final @ForEvent("click") MouseEvent event) {
  if (okCommand != null) {
    okCommand.execute();
  }
  hide();
}

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

@EventHandler("confirm-yes")
public void onYesClick(final @ForEvent("click") MouseEvent event) {
  if (yesCommand != null) {
    yesCommand.execute();
  }
  this.hide();
}

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

@Test
public void onNoClick() {
  yesNoConfirmPopupView.noCommand = null;
  yesNoConfirmPopupView.onNoClick(mouseEventMock);
  verify(noCommandMock, never()).execute();
  verify(yesNoConfirmPopupView, times(1)).hide();
  reset(yesNoConfirmPopupView);
  yesNoConfirmPopupView.noCommand = noCommandMock;
  yesNoConfirmPopupView.onNoClick(mouseEventMock);
  verify(noCommandMock, times(1)).execute();
  verify(yesNoConfirmPopupView, times(1)).hide();
}

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

@Test
public void onCloseClick() {
  yesNoConfirmPopupView.onCancelClick(mouseEventMock);
  verify(yesNoConfirmPopupView, times(1)).hide();
}

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

@Test
  public void hide() {
    yesNoConfirmPopupPresenter.hide();
    verify(yesNoConfirmPopupViewMock, times(1)).hide();
  }
}

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

@Test
public void onYesClick() {
  yesNoConfirmPopupView.yesCommand = null;
  yesNoConfirmPopupView.onYesClick(mouseEventMock);
  verify(yesCommandMock, never()).execute();
  verify(yesNoConfirmPopupView, times(1)).hide();
  reset(yesNoConfirmPopupView);
  yesNoConfirmPopupView.yesCommand = yesCommandMock;
  yesNoConfirmPopupView.onYesClick(mouseEventMock);
  verify(yesCommandMock, times(1)).execute();
  verify(yesNoConfirmPopupView, times(1)).hide();
}

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

@Test
public void hide() {
  yesNoConfirmPopupView.hide();
  verify(modalMock, times(1)).hide();
}

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

@Test
public void onOkClick() {
  yesNoConfirmPopupView.okCommand = null;
  yesNoConfirmPopupView.onOkClick(mouseEventMock);
  verify(okCommandMock, never()).execute();
  verify(yesNoConfirmPopupView, times(1)).hide();
  reset(yesNoConfirmPopupView);
  yesNoConfirmPopupView.yesCommand = okCommandMock;
  yesNoConfirmPopupView.onYesClick(mouseEventMock);
  verify(okCommandMock, times(1)).execute();
  verify(yesNoConfirmPopupView, times(1)).hide();
}

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

@Test
public void onCancelClick() {
  yesNoConfirmPopupView.onCancelClick(mouseEventMock);
  verify(yesNoConfirmPopupView, times(1)).hide();
}

相关文章