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(); }
private void showNotificationPopup(final String title, final String message) { YesNoCancelPopup popup = newNotificationPopup(title, message); popup.setClosable(false); popup.clearScrollHeight(); popup.show(); }
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(); }
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(); }
private void showNotificationPopup(final String title, final String message) { YesNoCancelPopup popup = newNotificationPopup(title, message); popup.setClosable(false); popup.clearScrollHeight(); popup.show(); }
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(); }
private void verifyPopupWasShown(YesNoCancelPopup popup) { verify(popup, times(1)).setClosable(false); verify(popup, times(1)).clearScrollHeight(); verify(popup, times(1)).show(); } }
private void verifyPopupWasShown(YesNoCancelPopup popup) { verify(popup, times(1)).setClosable(false); verify(popup, times(1)).clearScrollHeight(); verify(popup, times(1)).show(); } }
); yesNoCancelPopup.setClosable(false); yesNoCancelPopup.show();
@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(); } }