protected YesNoCancelPopup newYesNoPopup(final String title, final String message, final Command yesCommand, final Command noCommand) { return YesNoCancelPopup.newYesNoCancelPopup(title, message, yesCommand, noCommand, null); }
protected YesNoCancelPopup newYesNoPopup(final String title, final String message, final Command yesCommand, final Command noCommand) { return YesNoCancelPopup.newYesNoCancelPopup(title, message, yesCommand, noCommand, null); }
@Override public void show(String title, String message, Command yesCommand) { YesNoCancelPopup.newYesNoCancelPopup(title, message, yesCommand, null, null).show(); } }
private void executeWithConfirm(final String message, final Command command) { final Command yesCommand = command::execute; final Command noCommand = () -> { }; final YesNoCancelPopup popup = YesNoCancelPopup.newYesNoCancelPopup(message, null, yesCommand, noCommand, noCommand); popup.show(); }
@Override public void show(String title, String message, Command yesCommand) { YesNoCancelPopup.newYesNoCancelPopup(title, message, yesCommand, null, null).show(); } }
@Override public void show(String title, String message, Command yesCommand, Command noCommand) { YesNoCancelPopup.newYesNoCancelPopup(title, message, yesCommand, noCommand, null).show(); }
@Override public void show(final String title, final String message, final Command yesCommand, final Command noCommand, final Command cancelCommand) { YesNoCancelPopup.newYesNoCancelPopup(title, message, yesCommand, noCommand, cancelCommand).show(); }
protected YesNoCancelPopup newNotificationPopup(final String title, final String message) { return YesNoCancelPopup.newYesNoCancelPopup(title, message, () -> { }, CommonConstants.INSTANCE.OK(), null, null, null, null); } }
@Override public void show(final String title, final String message, final Command yesCommand, final Command noCommand, final Command cancelCommand) { YesNoCancelPopup.newYesNoCancelPopup(title, message, yesCommand, noCommand, cancelCommand).show(); }
@Override public void show(String title, String message, Command yesCommand, Command noCommand) { YesNoCancelPopup.newYesNoCancelPopup(title, message, yesCommand, noCommand, null).show(); }
protected YesNoCancelPopup newNotificationPopup(final String title, final String message) { return YesNoCancelPopup.newYesNoCancelPopup(title, message, () -> { }, CommonConstants.INSTANCE.OK(), null, null, null, null); } }
protected void executeWithConfirm(final Command command) { final Command yesCommand = () -> { command.execute(); }; final Command noCommand = () -> { }; final YesNoCancelPopup popup = YesNoCancelPopup.newYesNoCancelPopup(getConfirmMessage(), null, yesCommand, noCommand, noCommand); popup.show(); }
private <V> void executeWithConfirm(final ClientSessionCommand.Callback<V> callback) { final Command yesCommand = () -> { this.executeWithNoConfirm(callback); }; final Command noCommand = () -> { }; final YesNoCancelPopup popup = YesNoCancelPopup.newYesNoCancelPopup(getConfirmMessage(), null, yesCommand, noCommand, noCommand); 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(); }
public void showRestoreDefaultFilterConfirmationPopup() { YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(Constants.INSTANCE.RestoreDefaultFilters(), Constants.INSTANCE.AreYouSureRestoreDefaultFilters(), new Command() { @Override public void execute() { showBusyIndicator(Constants.INSTANCE.Loading()); restoreTabs(); } }, null, new Command() { @Override public void execute() { } }); yesNoCancelPopup.show(); }
@Override public void onRestoreDefaultFilters() { YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(constants.RestoreDefaultFilters(), constants.AreYouSureRestoreDefaultFilters(), () -> onRestoreFilters(), null, Commands.DO_NOTHING); yesNoCancelPopup.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(); }
public void onRemoveSavedFilter(@Observes final SavedFilterRemoveEvent event) { YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(constants.RemoveSavedFilterTitle(), constants.RemoveSavedFilterMessage(event.getSavedFilter().getName()), () -> removeSavedFilter(event.getSavedFilter()), null, Commands.DO_NOTHING); yesNoCancelPopup.show(); }
@Override public void showSavePopup(Path path, Command saveCommand, Command cancelCommand) { YesNoCancelPopup popup = YesNoCancelPopup.newYesNoCancelPopup(org.uberfire.ext.widgets.common.client.resources.i18n.CommonConstants.INSTANCE.Information(), translationService.getTranslation(FormEditorConstants.FormEditorViewImplSaveBeforeRename), saveCommand, CommonConstants.INSTANCE.Save(), null, null, cancelCommand, translationService.getTranslation(FormEditorConstants.FormEditorViewImplDontSave)); popup.show(); }