@Inject public EmbeddedPageViewImpl() { layout.setSizeFull(); }
private void initContainer() { CssLayout viewContainer = new CssLayout(); viewContainer.addStyleName("valo-content"); viewContainer.setSizeFull(); this.container = viewContainer; }
private CssLayout createGroup(Component... components) { CssLayout group = new CssLayout(); group.addStyleName("toolbar-component-group"); group.setSizeFull(); for (Component eachComponent : components) { eachComponent.setPrimaryStyleName("toolbar-group-item"); group.addComponent(eachComponent); } return group; }
private CssLayout createGroup(Component... components) { CssLayout group = new CssLayout(); group.addStyleName("toolbar-component-group"); group.setSizeFull(); for (Component eachComponent : components) { eachComponent.setPrimaryStyleName("toolbar-group-item"); group.addComponent(eachComponent); } return group; }
protected void initMain() { main = new CssLayout(); main.setSizeFull(); main.addStyleName(ExplorerLayout.STYLE_MAIN_CONTENT); addComponent(main); setExpandRatio(main, 1.0f); }
protected void initLayout() { container = new CssLayout(); container.setSizeFull(); container.setPrimaryStyleName(CURRENCYFIELD_LAYOUT_STYLENAME); container.addComponent(currencyLabel); if (useWrapper()) { ie9InputWrapper = new CssLayout(textField); ie9InputWrapper.setSizeFull(); ie9InputWrapper.setPrimaryStyleName(IE9_INPUT_WRAP_STYLENAME); container.addComponent(ie9InputWrapper); } else { container.addComponent(textField); } setFocusDelegate(textField); }
public MenuLayout() { setSizeFull(); menuArea.setPrimaryStyleName("valo-menu"); contentArea.setPrimaryStyleName("valo-content"); contentArea.addStyleName("v-scrollable"); contentArea.setSizeFull(); addComponents(menuArea, contentArea); setExpandRatio(contentArea, 1); }
public Window build() { Window dialog = new Window(); dialog.addStyleName("light-box"); dialog.setDraggable(false); dialog.setResizable(false); dialog.setModal(true); dialog.setWidth(95, Sizeable.Unit.PERCENTAGE); CssLayout contentWrapper = new CssLayout(content); contentWrapper.setSizeFull(); contentWrapper.setStyleName("light-box-content"); dialog.setContent(contentWrapper); dialog.center(); return dialog; }
contentLayout.setSizeFull(); contentLayout.addComponent(new Label("Nothing to display"));
public SmallAppLayout() { addStyleName("smallapp"); setSizeFull(); setSpacing(false); setMargin(false); description.addStyleName("smallapp-description"); description.setContentMode(ContentMode.HTML); descriptionLayout.addStyleName("smallapp-description-layout"); descriptionLayout.setVisible(false); descriptionLayout.addComponent(description); sectionsLayout.addStyleName("smallapp-sections"); sectionsLayout.setSizeFull(); addComponents(descriptionLayout, sectionsLayout); setExpandRatio(descriptionLayout, 0f); setExpandRatio(sectionsLayout, 1f); }
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); }
inf.addComponent(m_siteSelector); CssLayout crumbWrapper = new CssLayout(); crumbWrapper.setSizeFull(); crumbWrapper.setPrimaryStyleName(OpenCmsTheme.CRUMB_WRAPPER); crumbWrapper.addComponent(m_crumbs);
content.setSizeFull(); content.addComponent(form.asVaadinComponent());
overView.setSizeFull(); overView.setStyleName("overview");