Search in sources :

Example 1 with BaseModal

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

the class BaseOkCancelPopupView method init.

@PostConstruct
private void init() {
    this.modal = new BaseModal();
    this.modal.setBody(ElementWrapperWidget.getWidget(this.getElement()));
    this.modal.setClosable(false);
    modal.add(new ModalFooterOKCancelButtons(this::onOK, this::onCancel));
}
Also used : BaseModal(org.uberfire.ext.widgets.common.client.common.popups.BaseModal) ModalFooterOKCancelButtons(org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterOKCancelButtons) PostConstruct(javax.annotation.PostConstruct)

Example 2 with BaseModal

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

the class ValidationPopupViewImpl method show.

@Override
public void show() {
    modal = new BaseModal();
    modal.setTitle(translationService.getTranslation(KieWorkbenchWidgetsConstants.ValidationPopupViewImpl_ValidationErrors));
    modal.setBody(ElementWrapperWidget.getWidget(view));
    modal.show();
}
Also used : BaseModal(org.uberfire.ext.widgets.common.client.common.popups.BaseModal)

Example 3 with BaseModal

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

the class ShowAssetUsagesDisplayerViewViewImpl method init.

@PostConstruct
public void init() {
    modal = new BaseModal();
    modal.setTitle(translationService.getTranslation(RefactoringConstants.ShowAssetUsagesDisplayerViewViewImplTitle));
    modal.setBody(ElementWrapperWidget.getWidget(this.getElement()));
    modal.addHideHandler(event -> presenter.onClose());
    footer = new ModalFooterYesNoCancelButtons(modal, null, null, null, null, this::onProceed, translationService.getTranslation(RefactoringConstants.ShowAssetUsagesDisplayerViewViewImplProceed), null, null, this::onCancel, translationService.getTranslation(RefactoringConstants.ShowAssetUsagesDisplayerViewViewImplCancel), null, null);
    modal.add(footer);
    initTable();
}
Also used : ModalFooterYesNoCancelButtons(org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterYesNoCancelButtons) BaseModal(org.uberfire.ext.widgets.common.client.common.popups.BaseModal) PostConstruct(javax.annotation.PostConstruct)

Example 4 with BaseModal

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

the class AddGlobalPopupViewImpl method show.

@Override
public void show() {
    modal = new BaseModal();
    modal.setTitle(translationService.getTranslation(GlobalsEditorConstants.AddGlobalPopupTitle));
    modal.setBody(ElementWrapperWidget.getWidget(view));
    modal.show();
}
Also used : BaseModal(org.uberfire.ext.widgets.common.client.common.popups.BaseModal)

Example 5 with BaseModal

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

the class PreviewFormPresenterViewImpl method doInit.

@PostConstruct
protected void doInit() {
    modal = new BaseModal();
    modal.setBody(this);
    modal.setTitle(translationService.getTranslation(FormEditorConstants.FormEditorViewImplPreview));
    modal.add(new ModalFooterOKButton(new Command() {

        @Override
        public void execute() {
            modal.hide();
        }
    }));
    content.add(formRenderer);
}
Also used : BaseModal(org.uberfire.ext.widgets.common.client.common.popups.BaseModal) Command(com.google.gwt.user.client.Command) ModalFooterOKButton(org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterOKButton) PostConstruct(javax.annotation.PostConstruct)

Aggregations

BaseModal (org.uberfire.ext.widgets.common.client.common.popups.BaseModal)9 PostConstruct (javax.annotation.PostConstruct)7 ModalFooterOKCancelButtons (org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterOKCancelButtons)2 TextCell (com.google.gwt.cell.client.TextCell)1 Column (com.google.gwt.user.cellview.client.Column)1 Command (com.google.gwt.user.client.Command)1 ModalHiddenEvent (org.gwtbootstrap3.client.shared.event.ModalHiddenEvent)1 ModalHiddenHandler (org.gwtbootstrap3.client.shared.event.ModalHiddenHandler)1 ButtonCell (org.gwtbootstrap3.client.ui.gwt.ButtonCell)1 ModalFooterOKButton (org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterOKButton)1 ModalFooterYesNoCancelButtons (org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterYesNoCancelButtons)1