Search in sources :

Example 6 with YesNoCancelPopup

use of org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup in project kie-wb-common by kiegroup.

the class ContainerView method confirmRemove.

@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();
}
Also used : Command(org.uberfire.mvp.Command) YesNoCancelPopup(org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup)

Example 7 with YesNoCancelPopup

use of org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup in project kie-wb-common by kiegroup.

the class ServerTemplateView method confirmRemove.

@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();
}
Also used : Command(org.uberfire.mvp.Command) YesNoCancelPopup(org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup)

Example 8 with YesNoCancelPopup

use of org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup in project kie-wb-common by kiegroup.

the class PopupsUtil method showYesNoPopup.

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();
}
Also used : YesNoCancelPopup(org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup)

Example 9 with YesNoCancelPopup

use of org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup in project kie-wb-common by kiegroup.

the class AdvancedAnnotationListEditorViewImpl method showYesNoDialog.

@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();
}
Also used : YesNoCancelPopup(org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup)

Example 10 with YesNoCancelPopup

use of org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup in project kie-wb-common by kiegroup.

the class DataObjectBrowserViewImpl method showYesNoCancelPopup.

@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();
}
Also used : YesNoCancelPopup(org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup)

Aggregations

YesNoCancelPopup (org.uberfire.ext.widgets.common.client.common.popups.YesNoCancelPopup)21 Command (org.uberfire.mvp.Command)9 ClientSessionCommand (org.kie.workbench.common.stunner.core.client.session.command.ClientSessionCommand)3 Column (com.google.gwt.user.cellview.client.Column)2 TextColumn (com.google.gwt.user.cellview.client.TextColumn)2 TextHeader (com.google.gwt.user.cellview.client.TextHeader)2 Label (org.gwtbootstrap3.client.ui.Label)2 ButtonCell (org.gwtbootstrap3.client.ui.gwt.ButtonCell)2 Import (org.kie.soup.project.datamodel.imports.Import)2 ToolbarCommand (org.kie.workbench.common.stunner.client.widgets.toolbar.ToolbarCommand)2 ValueUpdater (com.google.gwt.cell.client.ValueUpdater)1 Element (com.google.gwt.dom.client.Element)1 NativeEvent (com.google.gwt.dom.client.NativeEvent)1 SafeHtml (com.google.gwt.safehtml.shared.SafeHtml)1 SafeHtmlBuilder (com.google.gwt.safehtml.shared.SafeHtmlBuilder)1 UiHandler (com.google.gwt.uibinder.client.UiHandler)1 KieServicesHttpException (org.kie.server.api.exception.KieServicesHttpException)1 ClearSessionCommand (org.kie.workbench.common.stunner.core.client.session.command.impl.ClearSessionCommand)1 ClearStatesSessionCommand (org.kie.workbench.common.stunner.core.client.session.command.impl.ClearStatesSessionCommand)1 CopySelectionSessionCommand (org.kie.workbench.common.stunner.core.client.session.command.impl.CopySelectionSessionCommand)1