List of usage examples for com.vaadin.ui AbstractComponentContainer addComponent
@Override public void addComponent(Component c)
From source file:com.expressui.core.util.UrlUtil.java
License:Open Source License
/** * Only used by sample application to track usage statistics * * @param container container for adding the embedded iframe to *///from w w w. j a v a 2 s . co m public static void addTrackingUrl(AbstractComponentContainer container, String tag) { try { URL url = new URL(EXPRESSUI_TEST_PAGE + tag); Embedded browser = new Embedded(null, new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setWidth(0, Sizeable.UNITS_PIXELS); browser.setHeight(0, Sizeable.UNITS_PIXELS); container.addComponent(browser); } catch (MalformedURLException e) { throw new RuntimeException(e); } }
From source file:module.contents.presentationTier.component.BaseComponent.java
License:Open Source License
protected VerticalLayout createVerticalLayout(final AbstractComponentContainer container) { final VerticalLayout layout = createVerticalLayout(); container.addComponent(layout); return layout; }
From source file:module.contents.presentationTier.component.BaseComponent.java
License:Open Source License
protected SplitPanel createSplitPanelLayout(final AbstractComponentContainer container, final int orientation, final boolean locked, final String height, final String width, final int splitPositionPos, final int splitPositionUnits) { final SplitPanel splitPanel = createSplitPanelLayout(orientation, locked, height, width, splitPositionPos, splitPositionUnits);/*w w w.j av a2 s . c o m*/ container.addComponent(splitPanel); return splitPanel; }
From source file:module.contents.presentationTier.component.BaseComponent.java
License:Open Source License
protected Label addTag(final AbstractComponentContainer container, final String tag, final String content, final String... params) { final Label label = new Label(htmlTag(tag, content, params), Label.CONTENT_XHTML); container.addComponent(label); return label; }
From source file:module.contents.presentationTier.component.PageBodyComponent.java
License:Open Source License
public void addSection(final AbstractComponentContainer container, final Section section) { final SectionComponent sectionComponent = new SectionComponent(section, menuReRenderListner); container.addComponent(sectionComponent); }
From source file:module.contents.presentationTier.component.PageView.java
License:Open Source License
private void renderPageContent(final AbstractComponentContainer container) { pageBodyComponent = new PageBodyComponent(page, menuReRenderListner); container.addComponent(pageBodyComponent); }
From source file:module.contents.presentationTier.component.SectionComponent.java
License:Open Source License
private SectionComponent addSectionComponent(final AbstractComponentContainer container, final Section section) { final SectionComponent sectionComponent = new SectionComponent(section, menuReRenderListner); container.addComponent(sectionComponent); return sectionComponent; }
From source file:module.contents.presentationTier.component.SectionComponent.java
License:Open Source License
private void addEditSectionButton(final AbstractComponentContainer container, final AbstractComponentContainer sectionContainer, final AbstractComponentContainer newSectionContainer, final Section section) { final EditSectionButton editSectionButton = new EditSectionButton(section, sectionContainer, new EditSectionSaveListner() { @Override// w w w . j ava 2s .c o m public void save(final String title, final String content, final AbstractComponentContainer editorContainer) { section.edit(title, content); newSectionContainer.replaceComponent(editorContainer, createSectionBody(newSectionContainer)); menuReRenderListner.reRender(); } }, false); container.addComponent(editSectionButton); final EditSectionButton editHtmlSectionButton = new EditSectionButton(section, sectionContainer, new EditSectionSaveListner() { @Override public void save(final String title, final String content, final AbstractComponentContainer editorContainer) { section.edit(title, content); newSectionContainer.replaceComponent(editorContainer, createSectionBody(newSectionContainer)); menuReRenderListner.reRender(); } }, true); container.addComponent(editHtmlSectionButton); }
From source file:module.contents.presentationTier.component.SectionComponent.java
License:Open Source License
private void addAddSectionButton(final AbstractComponentContainer container, final AbstractComponentContainer sectionContainer, final Section section) { final AddSectionButton createSectionComponent = new AddSectionButton(new ContentEditorSaveListner() { @Override//from ww w. ja v a 2s .com public void save(final String title, final String content) { final Section newSection = section.addSection(title, content); addSectionComponent(sectionContainer, newSection); menuReRenderListner.reRender(); } }); container.addComponent(createSectionComponent); }
From source file:module.contents.presentationTier.component.SimplePageBodyComponent.java
License:Open Source License
public void addSection(final AbstractComponentContainer container, final Section section) { final SimpleSectionComponent sectionComponent = new SimpleSectionComponent(section); container.addComponent(sectionComponent); }