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));
}
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();
}
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();
}
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();
}
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);
}
Aggregations