public void show() { if (!isShowing) { modal.show(); isShowing = true; } }
@Override public void execute() { modal.hide(); } }));
@PostConstruct void init() { this.modal.setTitle(getSelectDocumentViewTitle()); this.modal.setBody(this); this.modal.add(footer); this.modal.addHiddenHandler((e) -> onHidden()); }
this.modal = new BaseModal(); this.modal.setTitle( translationService.getTranslation( DataSourceManagementConstants.DataSourceSelector_Title ) ); this.modal.setBody( this ); this.modal.addHiddenHandler( new ModalHiddenHandler() { @Override public void onHidden( ModalHiddenEvent evt ) {
public CommonModalBuilder addFooter(ModalFooter footer) { this.getModal().add(footer); return this; }
@Override public void init( final CopyPopupPresenter presenter ) { this.presenter = presenter; templateName.addChangeHandler( new ChangeHandler() { @Override public void onChange( ChangeEvent event ) { if ( !templateName.getText().trim().isEmpty() ) { StyleHelper.addUniqueEnumStyleName( templateNameGroup, ValidationState.class, ValidationState.NONE ); templateNameHelp.setVisible( false ); } } } ); this.modal.setTitle( getCopyServerTemplatePopupTitle() ); this.modal.setBody( this ); this.templateNameLabel.setText( getTemplateNameLabelText() ); this.modal.add( new ModalFooterOKCancelButtons( new Command() { @Override public void execute() { presenter.save(); } }, new Command() { @Override public void execute() { hide(); } } ) ); }
@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); }
@Override public void setTitle(String title) { modal.setTitle(title); }
public AlertPopupViewImpl() { super(); this.modal = new BaseModal(); }
@Override public void init(final ChangePassword presenter) { this.presenter = presenter; initWidget(uiBinder.createAndBindUi(this)); modal.setBody(this); }
@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 CommonModalBuilder addFooter(ModalFooter footer) { this.getModal().add(footer); return this; }
@Override public ChangePassword.View show(final String username) { modal.setTitle(username); showModal(); return this; }
public CommonModalBuilder() { modal = new BaseModal(); }