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


Java YesNoCancelPopup.clearScrollHeight方法代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: showYesNoPopup

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

示例5: showNotificationPopup

import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
private void showNotificationPopup(final String title,
                                   final String message) {
    YesNoCancelPopup popup = newNotificationPopup(title,
                                                  message);
    popup.setClosable(false);
    popup.clearScrollHeight();
    popup.show();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:9,代码来源:PopupHelper.java


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