本文整理汇总了Java中org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup.show方法的典型用法代码示例。如果您正苦于以下问题:Java YesNoCancelPopup.show方法的具体用法?Java YesNoCancelPopup.show怎么用?Java YesNoCancelPopup.show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup
的用法示例。
在下文中一共展示了YesNoCancelPopup.show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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();
}
示例2: 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();
}
示例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();
}
示例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();
}
示例5: 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 String yesButtonText,
final ButtonType yesButtonType,
final Command noCommand,
final String noButtonText,
final ButtonType noButtonType ) {
YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( title,
message,
yesCommand,
yesButtonText,
yesButtonType,
noCommand,
noButtonText,
noButtonType,
null,
null,
null );
yesNoCancelPopup.setClosable( false );
yesNoCancelPopup.show();
}
示例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();
}
示例7: 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();
}
示例8: 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();
}
示例9: 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();
}
示例10: 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();
}
示例11: 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);
}
}
示例12: 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();
}
示例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(getConfirmRemovePopupTitle(),
getConfirmRemovePopupMessage(),
command,
new Command() {
@Override
public void execute() {
}
}, null);
result.clearScrollHeight();
result.show();
}
示例14: 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();
}
示例15: executeWithConfirm
import org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup; //导入方法依赖的package包/类
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();
}