本文整理汇总了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);
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}