@PostConstruct void setup() { this.modal.setBody( this ); this.modal.add( new ModalFooterOKButton( modal::hide ) ); }
@PostConstruct void init() { this.modal.setTitle(getSelectDocumentViewTitle()); this.modal.setBody(this); this.modal.add(footer); this.modal.addHiddenHandler((e) -> onHidden()); }
@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); }
public void setBody(final Widget widget) { final ModalBody body = new ModalBody(); body.add(widget); this.add(body); } }
@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 setBody(final Widget widget) { final ModalBody body = new ModalBody(); body.add(widget); this.add(body); } }
public CommonModalBuilder addFooter(HTMLElement element) { this.getModal().add(buildPanel(element, makeModalFooter())); return this; }
public CommonModalBuilder addBody(HTMLElement element) { this.getModal().add(buildPanel(element, makeModalBody())); return this; }
public CommonModalBuilder addBody(elemental2.dom.HTMLElement element) { this.getModal().add(buildPanel(element, makeModalBody())); return this; }
public CommonModalBuilder addFooter(final elemental2.dom.HTMLElement htmlElement) { final FlowPanel flowPanel = buildPanel(htmlElement, makeModalFooter()); getModal().add(flowPanel); return this; }
public CommonModalBuilder addBody(HTMLElement element) { this.getModal().add(buildPanel(element, makeModalBody())); return this; }
public CommonModalBuilder addBody(elemental2.dom.HTMLElement element) { this.getModal().add(buildPanel(element, makeModalBody())); return this; }
public CommonModalBuilder addFooter(HTMLElement element) { this.getModal().add(buildPanel(element, makeModalFooter())); return this; }
public CommonModalBuilder addFooter(final elemental2.dom.HTMLElement htmlElement) { final FlowPanel flowPanel = buildPanel(htmlElement, makeModalFooter()); getModal().add(flowPanel); return this; }
@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)); }
@Test public void testAddFooter() { final HTMLElement htmlElement = mock(HTMLElement.class); final FlowPanel flowPanel = mock(FlowPanel.class); final ModalFooter modalFooter = mock(ModalFooter.class); doReturn(modalMock).when(builder).getModal(); doReturn(modalFooter).when(builder).makeModalFooter(); doReturn(flowPanel).when(builder).buildPanel(htmlElement, modalFooter); builder.addFooter(htmlElement); verify(modalMock).add(flowPanel); }
@Test public void testAddBody() { final HTMLElement htmlElement = mock(HTMLElement.class); final FlowPanel flowPanel = mock(FlowPanel.class); final ModalBody modalBody = mock(ModalBody.class); doReturn(modalMock).when(builder).getModal(); doReturn(modalBody).when(builder).makeModalBody(); doReturn(flowPanel).when(builder).buildPanel(htmlElement, modalBody); builder.addBody(htmlElement); verify(modalMock).add(flowPanel); }
@PostConstruct public void init() { modal = new BaseModal(); modal.setTitle(translationService.getTranslation(FormEditorConstants.ChangesNotificationDisplayerTitle)); modal.setBody(ElementWrapperWidget.getWidget(this.getElement())); modal.add(footer); }
@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)); }
@PostConstruct public void init() { modal = new BaseModal(); modal.setBody(ElementWrapperWidget.getWidget(this.getElement())); modal.add(footer); fileNameTextBox.setPlaceholder(translationService.getTranslation(KieWorkbenchWidgetsConstants.NewResourceViewResourceNamePlaceholder)); fileTypeLabel.setShowRequiredIndicator(true); }