Search in sources :

Example 1 with ModalFooterOKButton

use of org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterOKButton 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)

Example 2 with ModalFooterOKButton

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

the class AlertPopupViewImpl method setup.

@PostConstruct
void setup() {
    this.modal.setBody(this);
    this.modal.add(new ModalFooterOKButton(modal::hide));
}
Also used : ModalFooterOKButton(org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterOKButton) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)2 ModalFooterOKButton (org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterOKButton)2 Command (com.google.gwt.user.client.Command)1 BaseModal (org.uberfire.ext.widgets.common.client.common.popups.BaseModal)1