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 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(); } }
@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(); }
@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(); }
@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(); } }
@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(); } }
}); result.clearScrollHeight(); result.show(); return;