protected void init() { this.tabsheetPanel = new Panel(); this.tabsheetPanel.addStyleName(ValoTheme.PANEL_BORDERLESS); this.tabsheetPanel.setSizeFull(); super.setSizeFull(); }
private void initContentPanel() { contentPanel = new Panel(); contentPanel.setSizeFull(); }
private void initContentPanel() { contentPanel = new Panel(); contentPanel.setSizeFull(); }
private Panel buildContent() { final Panel content = new Panel(); content.setSizeFull(); content.setStyleName("view-content"); return content; }
private Panel buildContent() { final Panel content = new Panel(); content.setSizeFull(); content.setStyleName("view-content"); return content; }
@Override public void doBuild(ViewChangeBusMessage busMessage) { Panel p = new Panel("Logged out"); p.setSizeFull(); getLayout().addComponent(p); }
private Panel createPanel(Component content, String caption) { Panel panel = new Panel(); panel.setSizeFull(); panel.setCaption(caption); panel.setContent(content); panel.addStyleName("novscroll"); return panel; } }
@Override public void doBuild() { super.doBuild(); Panel p = new Panel("Logged out"); p.setSizeFull(); getLayout().addComponent(p); }
/** * Uses the {@link #screenLayout} defined by sub-class implementations of {@link #screenLayout()}, expands it to * full size, and sets the View display panel to take up all spare space. */ protected void doLayout() { if (screenLayout == null) { screenLayout = screenLayout(); } screenLayout.setSizeFull(); if (viewDisplayPanel == null || viewDisplayPanel.getParent() == null) { String msg = "Your implementation of ScopedUI.screenLayout() must include getViewDisplayPanel(). AS a " + "minimum this could be 'return new VerticalLayout(getViewDisplayPanel())'"; log.error(msg); throw new ConfigurationException(msg); } viewDisplayPanel.setSizeFull(); setContent(screenLayout); }
private void initContentPanel() { contentPanel = new Panel(); contentPanel.setContent(new VerticalLayout()); contentPanel.getContent().setSizeFull(); contentPanel.setSizeFull(); }
/** * used wqhen nav tree not required, and split panel also therefore not required */ protected void nonSplitPanel() { if (nonSplitPanel == null) { nonSplitPanel = new Panel(); nonSplitPanel.setSizeFull(); } if (!option.get(optionNavTreeVisible)) { nonSplitPanel.setContent(mainArea); nonSplitPanel.setVisible(true); } else { nonSplitPanel.setVisible(false); } }
/** * used wqhen nav tree not required, and split panel also therefore not required */ protected void nonSplitPanel() { if (nonSplitPanel == null) { nonSplitPanel = new Panel(); nonSplitPanel.setSizeFull(); } if (!option.get(optionNavTreeVisible)) { nonSplitPanel.setContent(mainArea); nonSplitPanel.setVisible(true); } else { nonSplitPanel.setVisible(false); } }
public AbstractSectionsPanel() { selector = new SectionsSelector(); this.addComponent(selector); content = new Panel(); this.addComponent(content); content.setSizeFull(); setExpandRatio(content, 1.0f); selector.eventHandler().register(this); }
public AbstractSectionsPanel() { selector = new SectionsSelector(); this.addComponent(selector); content = new Panel(); this.addComponent(content); content.setSizeFull(); setExpandRatio(content, 1.0f); selector.eventHandler().register(this); }
protected void initInformationPanel() { Panel infoPanel = new Panel(); infoPanel.addStyleName(Reindeer.PANEL_LIGHT); infoPanel.setSizeFull(); profilePanelLayout.addComponent(infoPanel); profilePanelLayout.setExpandRatio(infoPanel, 1.0f); // info panel should take all the remaining width available // All the information sections are put under each other in a vertical layout this.infoPanelLayout = new VerticalLayout(); infoPanel.setContent(infoPanelLayout); initAboutSection(); initContactSection(); }
@Override public void createSection(Accordion compositionRoot, SideBarSectionDescriptor descriptor, Collection<SideBarItemDescriptor> itemDescriptors) { final Panel panel = new Panel(); panel.addStyleName(SIDE_BAR_SECTION_STYLE); panel.setSizeFull(); final VerticalLayout layout = new VerticalLayout(); panel.setContent(layout); for (SideBarItemDescriptor item : itemDescriptors) { layout.addComponent(itemComponentFactory.createItemComponent(item)); } compositionRoot.addTab(panel, descriptor.getCaption()); } }
private Panel wrapToPanel(Component component) { Panel panel = new Panel(component.getCaption()); panel.setSizeFull(); VerticalLayout layout = new VerticalLayout(); layout.setMargin(false); layout.setSpacing(false); layout.setSizeFull(); layout.addComponent(component); panel.setContent(layout); component.setCaption(null); return panel; }
private void init(CacheManager cacheManager) { VerticalLayout content = new VerticalLayout(); content.addComponent(createTitleBar()); content.addComponent(createCacheGrid(cacheManager)); Panel panel = new Panel(); panel.setSizeFull(); panel.setContent(createCacheCharts(cacheManager)); content.addComponent(panel); setCompositionRoot(content); }
@Override protected void init(VaadinRequest request) { final VerticalLayout root = new VerticalLayout(); root.setSizeFull(); setContent(root); final CssLayout navigationBar = new CssLayout(); navigationBar.addStyleName(ValoTheme.LAYOUT_COMPONENT_GROUP); navigationBar.addComponent(createNavigationButton("UI Scoped View", UIScopedView.VIEW_NAME)); navigationBar.addComponent(createNavigationButton("View Scoped View", ViewScopedView.VIEW_NAME)); root.addComponent(navigationBar); springViewDisplay = new Panel(); springViewDisplay.setSizeFull(); root.addComponent(springViewDisplay); root.setExpandRatio(springViewDisplay, 1.0f); }
public DetailPanel() { setSizeFull(); addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL); setMargin(true); CssLayout cssLayout = new CssLayout(); // Needed for rounded corners cssLayout.addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL); cssLayout.setSizeFull(); super.addComponent(cssLayout); mainPanel = new Panel(); mainPanel.addStyleName(Reindeer.PANEL_LIGHT); mainPanel.setSizeFull(); cssLayout.addComponent(mainPanel); // Use default layout VerticalLayout verticalLayout = new VerticalLayout(); verticalLayout.setWidth(100, UNITS_PERCENTAGE); verticalLayout.setMargin(true); mainPanel.setContent(verticalLayout); }