当前位置: 首页>>代码示例>>Java>>正文


Java YesNoCancelPopup.newYesNoCancelPopup方法代码示例

本文整理汇总了Java中org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup.newYesNoCancelPopup方法的典型用法代码示例。如果您正苦于以下问题:Java YesNoCancelPopup.newYesNoCancelPopup方法的具体用法?Java YesNoCancelPopup.newYesNoCancelPopup怎么用?Java YesNoCancelPopup.newYesNoCancelPopup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup的用法示例。


在下文中一共展示了YesNoCancelPopup.newYesNoCancelPopup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getYesNoCancelPopup

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
protected YesNoCancelPopup getYesNoCancelPopup(final String gridHeader,
                                               final String key) {
    return YesNoCancelPopup.newYesNoCancelPopup(CommonConstants.INSTANCE.RemoveTabTitle(),
                                                CommonConstants.INSTANCE.RemoveTabConfirm(gridHeader),
                                                new Command() {
                                                    @Override
                                                    public void execute() {
                                                        removeTab(key);
                                                    }
                                                },
                                                null,
                                                new Command() {
                                                    @Override
                                                    public void execute() {
                                                    }
                                                });
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:18,代码来源:FilterPagedTable.java

示例2: showSaveBeforeContinue

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@Override
public void showSaveBeforeContinue(org.uberfire.mvp.Command yesCommand,
                                   org.uberfire.mvp.Command noCommand,
                                   org.uberfire.mvp.Command cancelCommand) {
    YesNoCancelPopup popup = YesNoCancelPopup.newYesNoCancelPopup(
            org.uberfire.ext.widgets.common.client.resources.i18n.CommonConstants.INSTANCE.Information(),
            ProjectEditorResources.CONSTANTS.SaveBeforeBuildAndDeploy(),
            yesCommand,
            org.uberfire.ext.widgets.common.client.resources.i18n.CommonConstants.INSTANCE.YES(),
            ButtonType.PRIMARY,
            IconType.SAVE,

            noCommand,
            org.uberfire.ext.widgets.common.client.resources.i18n.CommonConstants.INSTANCE.NO(),
            ButtonType.DANGER,
            IconType.WARNING,

            cancelCommand,
            org.uberfire.ext.widgets.common.client.resources.i18n.CommonConstants.INSTANCE.Cancel(),
            ButtonType.DEFAULT,
            null
    );
    popup.setClosable(false);
    popup.show();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:26,代码来源:ProjectScreenViewImpl.java

示例3: showYesNoCancelPopup

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@Override
public void showYesNoCancelPopup(String title,
                                 String message,
                                 Command yesCommand,
                                 Command noCommand) {

    YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(title,
                                                                             message,
                                                                             yesCommand,
                                                                             noCommand,
                                                                             new Command() {
                                                                                 @Override
                                                                                 public void execute() {
                                                                                     //do nothing, but let the cancel button be shown.
                                                                                 }
                                                                             });
    yesNoCancelPopup.setClosable(false);
    yesNoCancelPopup.show();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:20,代码来源:DataModelerScreenViewImpl.java

示例4: showParseErrorsDialog

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@Override
public void showParseErrorsDialog(String title,
                                  String message,
                                  Command onCloseCommand) {

    YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(title,
                                                                             message,
                                                                             onCloseCommand,
                                                                             CommonConstants.INSTANCE.OK(),
                                                                             null,
                                                                             null,
                                                                             null,
                                                                             null,
                                                                             null,
                                                                             null,
                                                                             null);
    yesNoCancelPopup.setClosable(false);
    yesNoCancelPopup.show();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:20,代码来源:DataModelerScreenViewImpl.java

示例5: onForceUnlock

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@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();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:23,代码来源:MetadataWidget.java

示例6: showOkButtonPopup

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
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();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:18,代码来源:PopupsUtil.java

示例7: getShowDeletePopupCommand

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
private Command getShowDeletePopupCommand() {
    return new Command() {
        public void execute() {
            deleteDashboardPopup = YesNoCancelPopup.newYesNoCancelPopup(
                    AppConstants.INSTANCE.dashboard_delete_popup_title(),
                    AppConstants.INSTANCE.dashboard_delete_popup_content(),
                    getDoDeleteCommand(),
                    getCancelDeleteCommand(),
                    null);
            deleteDashboardPopup.show();
        }
    };
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:14,代码来源:DashboardPerspectiveActivity.java

示例8: showDeletePopup

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
public static void showDeletePopup(final String contentText,
                                   final Command yesCommand) {
    YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(CommonConstants.INSTANCE.Information(),
                                                                             contentText,
                                                                             yesCommand,
                                                                             CommonConstants.INSTANCE.YES(),
                                                                             ButtonType.DANGER,
                                                                             IconType.TRASH,
                                                                             new Command() {
                                                                                 @Override
                                                                                 public void execute() {
                                                                                     //do nothing
                                                                                 }
                                                                             },
                                                                             null,
                                                                             ButtonType.DEFAULT,
                                                                             null,
                                                                             new Command() {
                                                                                 @Override
                                                                                 public void execute() {
                                                                                     //do nothing.
                                                                                 }
                                                                             },
                                                                             null,
                                                                             ButtonType.DEFAULT,
                                                                             null
    );

    yesNoCancelPopup.setClosable(false);
    yesNoCancelPopup.show();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:32,代码来源:QueryDeletePopup.java

示例9: showYesNoCancelPopup

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@Override
public void showYesNoCancelPopup( String title,
        String message,
        Command yesCommand,
        String yesButtonText,
        ButtonType yesButtonType,
        Command noCommand,
        String noButtonText,
        ButtonType noButtonType,
        Command cancelCommand,
        String cancelButtonText,
        ButtonType cancelButtonType ) {

    YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( title,
            message,
            yesCommand,
            yesButtonText,
            yesButtonType,
            noCommand,
            noButtonText,
            noButtonType,
            cancelCommand,
            cancelButtonText,
            cancelButtonType );
    yesNoCancelPopup.setClosable( false );
    yesNoCancelPopup.show();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:28,代码来源:JPADataObjectEditorViewImpl.java

示例10: showYesNoDialog

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@Override
public void showYesNoDialog(String message,
                            Command yesCommand,
                            Command noCommand,
                            Command cancelCommand) {

    YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(
            CommonConstants.INSTANCE.Information(), message, yesCommand, noCommand, cancelCommand);

    yesNoCancelPopup.setClosable(false);
    yesNoCancelPopup.show();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:13,代码来源:AdvancedAnnotationListEditorViewImpl.java

示例11: showYesNoCancelPopup

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@Override
public void showYesNoCancelPopup(final String title,
                                 final String content,
                                 final Command yesCommand,
                                 final String yesButtonText,
                                 final ButtonType yesButtonType,
                                 final Command noCommand,
                                 final String noButtonText,
                                 final ButtonType noButtonType,
                                 final Command cancelCommand,
                                 final String cancelButtonText,
                                 final ButtonType cancelButtonType) {

    YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup(title,
                                                                             content,
                                                                             yesCommand,
                                                                             yesButtonText,
                                                                             yesButtonType,
                                                                             noCommand,
                                                                             noButtonText,
                                                                             noButtonType,
                                                                             cancelCommand,
                                                                             cancelButtonText,
                                                                             cancelButtonType);

    yesNoCancelPopup.setClosable(false);
    yesNoCancelPopup.show();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:29,代码来源:DataObjectBrowserViewImpl.java

示例12: error

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@Override
public boolean error(final Message message,
                     final Throwable throwable) {
    if (isInvalidBusContentException(throwable)) {
        final YesNoCancelPopup result = YesNoCancelPopup.newYesNoCancelPopup(DefaultWorkbenchConstants.INSTANCE.SessionTimeout(),
                                                                             DefaultWorkbenchConstants.INSTANCE.InvalidBusResponseProbablySessionTimeout(),
                                                                             Window.Location::reload,
                                                                             null,
                                                                             () -> {});
        result.clearScrollHeight();
        result.show();
        return false;
    } else if (isKieServerForbiddenException(throwable)) {
        ErrorPopup.showMessage(DefaultWorkbenchConstants.INSTANCE.KieServerError403());
        return false;
    } else if (isKieServerUnauthorizedException(throwable)) {
        ErrorPopup.showMessage(DefaultWorkbenchConstants.INSTANCE.KieServerError401());
        return false;
    } else if (throwable instanceof KieServicesHttpException) {
        KieServicesHttpException ex = (KieServicesHttpException) throwable;
        ErrorPopup.showMessage(CommonConstants.INSTANCE.ExceptionGeneric0(ex.getExceptionMessage()));
        return false;
    } else {
        return super.error(message,
                           throwable);
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:28,代码来源:DefaultWorkbenchErrorCallback.java

示例13: confirmRemove

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@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();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:15,代码来源:ServerTemplateView.java

示例14: confirmRemove

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
@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();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:14,代码来源:ContainerView.java

示例15: generateNoRightsPopup

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
void generateNoRightsPopup() {
    YesNoCancelPopup popup = YesNoCancelPopup.newYesNoCancelPopup(CommonConstants.INSTANCE.Information(),
                                                                  Constants.INSTANCE.Error_NoAccessRights(),
                                                                  null,
                                                                  null,
                                                                  () -> {/* do nothing, just to show the cancel button*/});
    popup.setClosable(false);
    popup.show();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:10,代码来源:DefaultSocialLinkCommandGenerator.java


注:本文中的org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup.newYesNoCancelPopup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。