@PostConstruct protected void init() { modal = new BaseModal(); modal.setClosable(false); modal.setBody(this); modal.add(new ModalFooterOKCancelButtons( this::maybeOk, this::close)); modal.addHideHandler(evt -> presenter.onClose()); formContent.add(formRenderer); }
@PostConstruct public void init() { modal = new BaseModal(); modal.setTitle(translationService.getTranslation(FormEditorConstants.ErrorMessageDisplayerViewImplTitle)); modal.setClosable(false); modal.setBody(ElementWrapperWidget.getWidget(this.getElement())); modal.add(new ModalFooterOKButton(modal::hide)); modal.addHideHandler(evt -> presenter.notifyClose()); }
public void superSetup() { view.init(this); modal = new CommonModalBuilder() .addHeader(getHeader()) .addBody(getBody()) .addFooter(getFooter()) .build(); modal.addHideHandler(i -> isShowing = false); }
public void superSetup() { view.init(this); modal = new CommonModalBuilder() .addHeader(getHeader()) .addBody(getBody()) .addFooter(getFooter()) .build(); modal.addHideHandler(i -> isShowing = false); }
@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(); }