gpt4 book ai didi

org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup.newYesNoCancelPopup()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 16:04:40 28 4
gpt4 key购买 nike

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

YesNoCancelPopup.newYesNoCancelPopup介绍

暂无

代码示例

代码示例来源:origin: org.guvnor/guvnor-ala-ui-client

protected YesNoCancelPopup newYesNoPopup(final String title,
                     final String message,
                     final Command yesCommand,
                     final Command noCommand) {
  return YesNoCancelPopup.newYesNoCancelPopup(title,
                        message,
                        yesCommand,
                        noCommand,
                        null);
}

代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client

protected YesNoCancelPopup newYesNoPopup(final String title,
                     final String message,
                     final Command yesCommand,
                     final Command noCommand) {
  return YesNoCancelPopup.newYesNoCancelPopup(title,
                        message,
                        yesCommand,
                        noCommand,
                        null);
}

代码示例来源:origin: org.uberfire/uberfire-widgets-security-management

@Override
  public void show(String title,
           String message,
           Command yesCommand) {
    YesNoCancelPopup.newYesNoCancelPopup(title,
                       message,
                       yesCommand,
                       null,
                       null).show();
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-project-client

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();
}

代码示例来源:origin: kiegroup/appformer

@Override
  public void show(String title,
           String message,
           Command yesCommand) {
    YesNoCancelPopup.newYesNoCancelPopup(title,
                       message,
                       yesCommand,
                       null,
                       null).show();
  }
}

代码示例来源:origin: org.uberfire/uberfire-widgets-security-management

@Override
public void show(String title,
         String message,
         Command yesCommand,
         Command noCommand) {
  YesNoCancelPopup.newYesNoCancelPopup(title,
                     message,
                     yesCommand,
                     noCommand,
                     null).show();
}

代码示例来源:origin: org.uberfire/uberfire-widgets-security-management

@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();
}

代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client

protected YesNoCancelPopup newNotificationPopup(final String title,
                          final String message) {

    return YesNoCancelPopup.newYesNoCancelPopup(title,
                          message,
                          () -> {
                          },
                          CommonConstants.INSTANCE.OK(),
                          null,
                          null,
                          null,
                          null);
  }
}

代码示例来源:origin: kiegroup/appformer

@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();
}

代码示例来源:origin: kiegroup/appformer

@Override
public void show(String title,
         String message,
         Command yesCommand,
         Command noCommand) {
  YesNoCancelPopup.newYesNoCancelPopup(title,
                     message,
                     yesCommand,
                     noCommand,
                     null).show();
}

代码示例来源:origin: org.guvnor/guvnor-ala-ui-client

protected YesNoCancelPopup newNotificationPopup(final String title,
                          final String message) {

    return YesNoCancelPopup.newYesNoCancelPopup(title,
                          message,
                          () -> {
                          },
                          CommonConstants.INSTANCE.OK(),
                          null,
                          null,
                          null,
                          null);
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

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();
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

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();
}

代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-datasource-mgmt-client

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();
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-generic-client

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();
}

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

@Override
  public void onRestoreDefaultFilters() {
    YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(constants.RestoreDefaultFilters(),
                                         constants.AreYouSureRestoreDefaultFilters(),
                                         () -> onRestoreFilters(),
                                         null,
                                         Commands.DO_NOTHING);
    yesNoCancelPopup.show();
  }
}

代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

@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();
}

代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

@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();
}

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

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();
}

代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-forms-editor-client

@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();
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com