@PostConstruct void init() { this.modal.setTitle(getSelectDocumentViewTitle()); this.modal.setBody(this); this.modal.add(footer); this.modal.addHiddenHandler((e) -> onHidden()); }
@Override public void init(NewPerspectivePopUp presenter) { this.presenter = presenter; modal = new CommonModalBuilder() .addHeader(i18n.newPerspectivePopUpViewTitle()) .addBody(body) .addFooter(footer) .build(); modal.addHiddenHandler(hiddenEvent -> { if (ButtonPressed.CLOSE.equals(buttonPressed)) { presenter.onCancel(); } }); }
@Override public void init(NewPerspectivePopUp presenter) { this.presenter = presenter; modal = new CommonModalBuilder() .addHeader(i18n.newPerspectivePopUpViewTitle()) .addBody(body) .addFooter(footer) .build(); modal.addHiddenHandler(hiddenEvent -> { if (ButtonPressed.CLOSE.equals(buttonPressed)) { presenter.onCancel(); } }); }
private void modalSetup() { body.appendChild(presenter.getHtmlEditorView().getElement()); modal = new CommonModalBuilder() .addHeader(translationService.format(Constants.EditHTMLView_Title)) .addBody(body) .addFooter(footer) .build(); modal.addHiddenHandler(hiddenEvent -> { if (ButtonPressed.CLOSE.equals(buttonPressed)) { presenter.closeClick(); } presenter.destroyHtmlEditor(); }); modal.setWidth("960px"); }
private void modalSetup() { body.appendChild(presenter.getHtmlEditorView().getElement()); modal = new CommonModalBuilder() .addHeader(translationService.format(Constants.EditHTMLView_Title)) .addBody(body) .addFooter(footer) .build(); modal.addHiddenHandler(hiddenEvent -> { if (ButtonPressed.CLOSE.equals(buttonPressed)) { presenter.closeClick(); } presenter.destroyHtmlEditor(); }); modal.setWidth("960px"); }
@Override public void init(PerspectiveDragConfigModal presenter) { this.presenter = presenter; currentSelection.setTextContent(ContentManagerConstants.INSTANCE.perspectiveDragSelectorHint()); navItemLabel.setTextContent(ContentManagerConstants.INSTANCE.perspectiveDragSelectorLabel()); modal = new CommonModalBuilder() .addHeader(ContentManagerConstants.INSTANCE.perspectiveDragComponentHeader()) .addBody( body ) .addFooter( footer ) .build(); modal.addHiddenHandler(hiddenEvent -> { if (ButtonPressed.CLOSE.equals(buttonPressed)) { presenter.onCancel(); } }); modal.setWidth( "960px" ); }
@Override public void init(PerspectiveDragConfigModal presenter) { this.presenter = presenter; currentSelection.setTextContent(ContentManagerConstants.INSTANCE.perspectiveDragSelectorHint()); navItemLabel.setTextContent(ContentManagerConstants.INSTANCE.perspectiveDragSelectorLabel()); modal = new CommonModalBuilder() .addHeader(ContentManagerConstants.INSTANCE.perspectiveDragComponentHeader()) .addBody( body ) .addFooter( footer ) .build(); modal.addHiddenHandler(hiddenEvent -> { if (ButtonPressed.CLOSE.equals(buttonPressed)) { presenter.onCancel(); } }); modal.setWidth( "960px" ); }
translationService.getTranslation( DataSourceManagementConstants.DataSourceSelector_Title ) ); this.modal.setBody( this ); this.modal.addHiddenHandler( new ModalHiddenHandler() { @Override public void onHidden( ModalHiddenEvent evt ) {
@Override public void init(NavComponentConfigModal presenter) { this.presenter = presenter; navGroupLabel.setTextContent(NavigationConstants.INSTANCE.navGroupLabel()); navGroupHelp.setTitle(NavigationConstants.INSTANCE.navGroupHelp()); navGroupSelection.setTextContent(NavigationConstants.INSTANCE.navGroupSelectorHint()); defaultItemLabel.setTextContent(NavigationConstants.INSTANCE.defaultItemLabel()); defaultItemHelp.setTitle(NavigationConstants.INSTANCE.defaultItemHelp()); defaultItemSelection.setTextContent(NavigationConstants.INSTANCE.defaultItemSelectorHint()); targetDivLabel.setTextContent(NavigationConstants.INSTANCE.targetDivLabel()); targetDivHelp.setTitle(NavigationConstants.INSTANCE.targetDivHelp()); targetDivSelection.setTextContent(NavigationConstants.INSTANCE.targetDivSelectorHint()); modal = new CommonModalBuilder() .addHeader(NavigationConstants.INSTANCE.navConfigHeader()) .addBody( body ) .addFooter( footer ) .build(); modal.addHiddenHandler(hiddenEvent -> { if (ButtonPressed.CLOSE.equals(buttonPressed)) { presenter.onCancel(); } }); modal.setWidth( "960px" ); }
@Override public void init(NavComponentConfigModal presenter) { this.presenter = presenter; navGroupLabel.setTextContent(NavigationConstants.INSTANCE.navGroupLabel()); navGroupHelp.setTitle(NavigationConstants.INSTANCE.navGroupHelp()); navGroupSelection.setTextContent(NavigationConstants.INSTANCE.navGroupSelectorHint()); defaultItemLabel.setTextContent(NavigationConstants.INSTANCE.defaultItemLabel()); defaultItemHelp.setTitle(NavigationConstants.INSTANCE.defaultItemHelp()); defaultItemSelection.setTextContent(NavigationConstants.INSTANCE.defaultItemSelectorHint()); targetDivLabel.setTextContent(NavigationConstants.INSTANCE.targetDivLabel()); targetDivHelp.setTitle(NavigationConstants.INSTANCE.targetDivHelp()); targetDivSelection.setTextContent(NavigationConstants.INSTANCE.targetDivSelectorHint()); modal = new CommonModalBuilder() .addHeader(NavigationConstants.INSTANCE.navConfigHeader()) .addBody( body ) .addFooter( footer ) .build(); modal.addHiddenHandler(hiddenEvent -> { if (ButtonPressed.CLOSE.equals(buttonPressed)) { presenter.onCancel(); } }); modal.setWidth( "960px" ); }