@Test public void testShowYesNoPopup() { Command yesCommand = mock(Command.class); Command noCommand = mock(Command.class); popupHelper.showYesNoPopup(TITLE, MESSAGE, yesCommand, noCommand); verify(popupHelper, times(1)).newYesNoPopup(TITLE, MESSAGE, yesCommand, noCommand); verifyPopupWasShown(yesNoCancelPopup); }
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(); }
PopupHelper implements HasBusyIndicator { 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(); } }
PopupHelper implements HasBusyIndicator { 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(); } @Inject  PopupHelper(final ErrorPopup errorPopup); }
PopupHelper implements HasBusyIndicator { 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(); } @Inject  PopupHelper(final ErrorPopup errorPopup); void showInformationPopup(final String message); void showErrorPopup(final String message); void showErrorPopup(final String message,
                               final String detail); void showYesNoPopup(final String title,
                               final String message,
                               final Command yesCommand,
                               final Command noCommand); @Override void showBusyIndicator(final String message); @Override void hideBusyIndicator(); ErrorCallback<Message> getPopupErrorCallback(); }
PopupHelper implements HasBusyIndicator { 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(); } @Inject  PopupHelper(final ErrorPopup errorPopup); void showInformationPopup(final String message); void showErrorPopup(final String message); void showErrorPopup(final String message,
                               final String detail); void showYesNoPopup(final String title,
                               final String message,
                               final Command yesCommand,
                               final Command noCommand); @Override void showBusyIndicator(final String message); @Override void hideBusyIndicator(); ErrorCallback<Message> getPopupErrorCallback();  }