com.vaadin.ui.VerticalLayout.setSizeFull() - java examples

Here are the examples of the java api com.vaadin.ui.VerticalLayout.setSizeFull() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

94 Examples 7

19 View Complete Implementation : Login.java
Copyright Apache License 2.0
Author : apache
@Override
protected void init(VaadinRequest vaadinRequest) {
    mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    setContent(mainLayout);
    addItems();
    loadScripts();
}

18 View Complete Implementation : SimpleApplicationUI.java
Copyright Apache License 2.0
Author : chelu
@Override
protected void init(VaadinRequest request) {
    addStyleNames();
    root.setSizeFull();
    buildMain();
    setContent(root);
    // mainView.setSizeFull();
    doInit(request);
}

18 View Complete Implementation : WizardsDemoApplication.java
Copyright Apache License 2.0
Author : tehapo
@Override
protected void init(VaadinRequest request) {
    // setup the main window
    mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    mainLayout.setMargin(true);
    setContent(mainLayout);
    // create the Wizard component and add the steps
    wizard = new Wizard();
    wizard.setUriFragmentEnabled(true);
    wizard.addListener(this);
    wizard.addStep(new IntroStep(), "intro");
    wizard.addStep(new SetupStep(), "setup");
    wizard.addStep(new ListenStep(), "listen");
    wizard.addStep(new LastStep(wizard), "last");
    wizard.setHeight("600px");
    wizard.setWidth("800px");
    mainLayout.addComponent(wizard);
    mainLayout.setComponentAlignment(wizard, Alignment.TOP_CENTER);
}

18 View Complete Implementation : HelpSplitPanel.java
Copyright GNU General Public License v3.0
Author : rlsutton1
private void resizeHelp() {
    helpPane.setSizeFull();
    helpHolder.setSizeFull();
}

18 View Complete Implementation : AbstractDistributionSetDetails.java
Copyright Eclipse Public License 1.0
Author : eclipse
private final void createSoftwareModuleTab() {
    this.softwareModuleTab = createTabLayout();
    softwareModuleTab.setSizeFull();
    softwareModuleTab.addComponent(softwareModuleDetailsTable);
}

17 View Complete Implementation : EmbeddedVisUI.java
Copyright Apache License 2.0
Author : korpling
private void displayLoadingIndicator() {
    VerticalLayout layout = new VerticalLayout();
    layout.addStyleName("v-app-loading");
    layout.setSizeFull();
    setContent(layout);
}

17 View Complete Implementation : ComponentWrapper.java
Copyright Apache License 2.0
Author : bsblabs
/**
 * Wraps the specified {@link Component} into a UI
 *
 * @param component the component to wrap
 * @return an UI displaying that component
 * @see #wrapLayout(com.vaadin.ui.Layout)
 */
public UI wrap(Component component) {
    if (component instanceof UI) {
        return (UI) component;
    }
    if (component instanceof Window) {
        return wrapWindow((Window) component);
    }
    if (component instanceof Layout) {
        return wrapLayout((Layout) component);
    }
    // Ok it's a component we cannot handle directly
    final VerticalLayout layout = new VerticalLayout();
    layout.setMargin(true);
    layout.setSizeFull();
    layout.addComponent(component);
    layout.setExpandRatio(component, 1);
    return wrapLayout(layout);
}

16 View Complete Implementation : AbstractMainView.java
Copyright Apache License 2.0
Author : chelu
/**
 * Create a new {@link VerticalLayout}
 * @return a new VerticalLayout.
 */
protected VerticalLayout createVerticalLayout() {
    VerticalLayout vl = new VerticalLayout();
    vl.setMargin(true);
    vl.setSizeFull();
    vl.setSpacing(true);
    return vl;
}

16 View Complete Implementation : FilterManagementView.java
Copyright Eclipse Public License 1.0
Author : eclipse
private void viewListView() {
    removeAllComponents();
    final VerticalLayout tableListViewLayout = new VerticalLayout();
    tableListViewLayout.setSizeFull();
    tableListViewLayout.setSpacing(false);
    tableListViewLayout.setMargin(false);
    tableListViewLayout.setStyleName("table-layout");
    tableListViewLayout.addComponent(targetFilterHeader);
    tableListViewLayout.setComponentAlignment(targetFilterHeader, Alignment.TOP_CENTER);
    tableListViewLayout.addComponent(targetFilterTable);
    tableListViewLayout.setComponentAlignment(targetFilterTable, Alignment.TOP_CENTER);
    tableListViewLayout.setExpandRatio(targetFilterTable, 1.0F);
    addComponent(tableListViewLayout);
}

16 View Complete Implementation : AbstractHawkbitLoginUI.java
Copyright Eclipse Public License 1.0
Author : eclipse
private VerticalLayout buildContent() {
    final VerticalLayout rootLayout = new VerticalLayout();
    rootLayout.setSizeFull();
    rootLayout.setStyleName("main-content");
    rootLayout.addComponent(buildHeader());
    addLoginForm(rootLayout);
    addFooter(rootLayout);
    return rootLayout;
}

16 View Complete Implementation : PoliticianRoleSummaryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
/**
 * Creates the role summary.
 *
 * @param roleSummaryLayoutTabsheet the role summary layout tabsheet
 * @param replacedignmentList the replacedignment list
 * @param viewRiksdagenPolitician the view riksdagen politician
 */
private void createRoleSummary(final VerticalLayout roleSummaryLayoutTabsheet, final List<replacedignmentData> replacedignmentList, final ViewRiksdagenPolitician viewRiksdagenPolitician) {
    final VerticalLayout layout = new VerticalLayout();
    layout.setSizeFull();
    layout.addComponent(new Label(TOTAL_replacedIGNMENTS + replacedignmentList.size()));
    if (viewRiksdagenPolitician != null) {
        layout.addComponent(new Label(GOVERNMENT_EXPERIENCE + convertToYearsString(viewRiksdagenPolitician.getTotalDaysServedGovernment())));
        layout.addComponent(new Label(SPEAKER_EXPERIENCE + convertToYearsString(viewRiksdagenPolitician.getTotalDaysServedSpeaker())));
        layout.addComponent(new Label(COMMITTEE_EXPERIENCE + convertToYearsString(viewRiksdagenPolitician.getTotalDaysServedCommittee())));
        layout.addComponent(new Label(EU_EXPERIENCE + convertToYearsString(viewRiksdagenPolitician.getTotalDaysServedEu())));
        layout.addComponent(new Label(PARLIAMENT_EXPERIENCE + convertToYearsString(viewRiksdagenPolitician.getTotalDaysServedParliament())));
        layout.addComponent(new Label(PARTY_EXPERIENCE + convertToYearsString(viewRiksdagenPolitician.getTotalDaysServedParty())));
    }
    roleSummaryLayoutTabsheet.addComponent(layout);
    roleSummaryLayoutTabsheet.setExpandRatio(layout, ContentRatio.GRID);
}

16 View Complete Implementation : HelpSplitPanel.java
Copyright GNU General Public License v3.0
Author : rlsutton1
private void buildMainLayout() {
    addComponent((Component) component);
    setExpandRatio((Component) component, 1);
    helpPane = new Panel();
    helpPane.setImmediate(false);
    showHelpLoadingSplash();
    helpSliderPanel = new SliderPanelBuilder(helpPane).expanded(false).mode(SliderMode.RIGHT).tabPosition(SliderTabPosition.MIDDLE).style(SliderPanelStyles.COLOR_BLUE).caption("Help").animationDuration(400).tabSize(30).autoCollapseSlider(true).fixedContentSize((int) (UI.getCurrent().getPage().getBrowserWindowWidth() * 0.75)).build();
    helpLoader = new SlideOutLoader();
    innerSecondPanel = new VerticalLayout();
    innerSecondPanel.setSizeFull();
    innerSecondPanel.setWidth("30");
    innerSecondPanel.addComponent(helpSliderPanel);
    innerSecondPanel.setComponentAlignment(helpSliderPanel, Alignment.MIDDLE_RIGHT);
    addComponent(innerSecondPanel);
    Page.getCurrent().addBrowserWindowResizeListener(new BrowserWindowResizeListener() {

        private static final long serialVersionUID = -8548907013566961812L;

        @Override
        public void browserWindowResized(BrowserWindowResizeEvent event) {
            helpSliderPanel.setFixedContentSize((int) (event.getWidth() * 0.75));
            if (helpSliderPanel.isExpanded()) {
                helpSliderPanel.collapse();
            }
        }
    });
}

16 View Complete Implementation : SearchableGrid.java
Copyright GNU General Public License v3.0
Author : rlsutton1
public void init(String uniqueId, Clreplaced<E> enreplacedyClazz) {
    if (!getSecurityManager().creplacederView()) {
        this.setSizeFull();
        this.setCompositionRoot(new Label("Sorry, you do not have permission to access " + getreplacedle()));
        return;
    }
    container = getContainer();
    grid = new Grid(new GeneratedPropertyContainer(container));
    grid.setSizeFull();
    searchBar = buildSearchBar();
    mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    addreplacedle(mainLayout);
    mainLayout.addComponent(searchBar);
    mainLayout.addComponent(grid);
    mainLayout.setExpandRatio(grid, 1);
    this.setCompositionRoot(mainLayout);
    headingPropertySet = getHeadingPropertySet();
    headingPropertySet.setDeferLoadSettings(true);
    headingPropertySet.applyToGrid(enreplacedyClazz, grid, uniqueId + enreplacedyClazz.getSimpleName());
}

16 View Complete Implementation : MyViewImpl.java
Copyright GNU General Public License v3.0
Author : antoniomaria
@PostConstruct
protected void initView() {
    setSizeFull();
    final VerticalLayout mainLayout = new VerticalLayout();
    setCompositionRoot(mainLayout);
    mainLayout.setSizeFull();
    mainLayout.addComponent(label);
}

16 View Complete Implementation : FilterTableDemoUI.java
Copyright Apache License 2.0
Author : tepi
private Component buildNormalTableTab() {
    /* Create FilterTable */
    FilterTable normalFilterTable = buildFilterTable();
    final VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    mainLayout.setSpacing(true);
    mainLayout.setMargin(true);
    mainLayout.addComponent(normalFilterTable);
    mainLayout.setExpandRatio(normalFilterTable, 1);
    mainLayout.addComponent(buildButtons(normalFilterTable));
    Panel p = new Panel();
    p.setSizeFull();
    p.setContent(mainLayout);
    return p;
}

15 View Complete Implementation : FilterManagementView.java
Copyright Eclipse Public License 1.0
Author : eclipse
private void buildFilterDetailOrCreateView() {
    removeAllComponents();
    final VerticalLayout tableHeaderLayout = new VerticalLayout();
    tableHeaderLayout.setSizeFull();
    tableHeaderLayout.setSpacing(false);
    tableHeaderLayout.setMargin(false);
    tableHeaderLayout.setStyleName("table-layout");
    tableHeaderLayout.addComponent(createNewFilterHeader);
    tableHeaderLayout.setComponentAlignment(createNewFilterHeader, Alignment.TOP_CENTER);
    tableHeaderLayout.addComponent(createNewFilterTable);
    tableHeaderLayout.setComponentAlignment(createNewFilterTable, Alignment.TOP_CENTER);
    tableHeaderLayout.setExpandRatio(createNewFilterTable, 1.0F);
    addComponent(tableHeaderLayout);
    setComponentAlignment(tableHeaderLayout, Alignment.TOP_CENTER);
    setExpandRatio(tableHeaderLayout, 1.0F);
    final HorizontalLayout targetsCountmessageLabelLayout = addTargetFilterMessageLabel();
    addComponent(targetsCountmessageLabelLayout);
    setComponentAlignment(targetsCountmessageLabelLayout, Alignment.BOTTOM_CENTER);
}

15 View Complete Implementation : DashboardMenu.java
Copyright Eclipse Public License 1.0
Author : eclipse
private Component buildContent() {
    final VerticalLayout dashboardMenuLayout = new VerticalLayout();
    dashboardMenuLayout.setSizeFull();
    final VerticalLayout menuContent = getMenuLayout();
    menuContent.addComponent(buildUserMenu(uiProperties));
    menuContent.addComponent(buildToggleButton());
    final VerticalLayout menus = buildMenuItems();
    final VerticalLayout links = buildLinksAndVersion();
    menus.addComponent(links);
    menus.setComponentAlignment(links, Alignment.BOTTOM_CENTER);
    menus.setExpandRatio(links, 1.0F);
    menuContent.addComponent(menus);
    menuContent.setExpandRatio(menus, 1.0F);
    dashboardMenuLayout.addComponent(menuContent);
    return dashboardMenuLayout;
}

15 View Complete Implementation : HelpSplitPanel.java
Copyright GNU General Public License v3.0
Author : rlsutton1
private void showHelpLoadingSplash() {
    VerticalLayout splashHolder = new VerticalLayout();
    splashHolder.setSizeFull();
    Label splashLabel = new Label("<h2><br><br><b><center>Loading help, Please wait...<b>", ContentMode.HTML);
    splashHolder.addComponent(splashLabel);
    splashHolder.setComponentAlignment(splashLabel, Alignment.MIDDLE_RIGHT);
    helpPane.setContent(splashHolder);
    helpPane.setSizeFull();
}

15 View Complete Implementation : FilterTableDemoUI.java
Copyright Apache License 2.0
Author : tepi
private Component buildTreeTableTab() {
    /* Create FilterTable */
    FilterTreeTable filterTreeTable = buildFilterTreeTable();
    final VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    mainLayout.setSpacing(true);
    mainLayout.setMargin(true);
    mainLayout.addComponent(filterTreeTable);
    mainLayout.setExpandRatio(filterTreeTable, 1);
    mainLayout.addComponent(buildButtons(filterTreeTable));
    Panel p = new Panel();
    p.setSizeFull();
    p.setContent(mainLayout);
    return p;
}

15 View Complete Implementation : MainView.java
Copyright GNU General Public License v3.0
Author : AskNowQA
private void createMainPanel() {
    mainPanel = new VerticalLayout();
    mainPanel.setSpacing(true);
    mainPanel.setSizeFull();
    addComponent(mainPanel);
    setExpandRatio(mainPanel, 1f);
    // top part
    Component inputForm = createInputComponent();
    inputForm.setWidth("60%");
    inputForm.setHeight("100%");
    VerticalLayout inputFormHolder = new VerticalLayout();
    inputFormHolder.addStyleName("input-form");
    inputFormHolder.setHeight(null);
    inputFormHolder.setWidth("100%");
    inputFormHolder.addComponent(inputForm);
    inputFormHolder.setComponentAlignment(inputForm, Alignment.MIDDLE_CENTER);
    mainPanel.addComponent(inputFormHolder);
    mainPanel.setComponentAlignment(inputFormHolder, Alignment.MIDDLE_CENTER);
    // middle part
    resultHolderPanel = new VerticalLayout();
    resultHolderPanel.setWidth("80%");
    resultHolderPanel.setHeight("100%");
    mainPanel.addComponent(resultHolderPanel);
    mainPanel.setComponentAlignment(resultHolderPanel, Alignment.MIDDLE_CENTER);
    mainPanel.setExpandRatio(resultHolderPanel, 0.8f);
    // refine button, only visible if constraints running QTL algorithm are satisfied
    refineButton = new Button("Refine");
    refineButton.setVisible(false);
    refineButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            onRefineResult();
        }
    });
    mainPanel.addComponent(refineButton);
    mainPanel.setComponentAlignment(refineButton, Alignment.MIDDLE_CENTER);
}

14 View Complete Implementation : AbstractMetadataPopupLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
protected VerticalLayout createMetadataFieldsLayout() {
    final VerticalLayout metadataFieldsLayout = new VerticalLayout();
    metadataFieldsLayout.setSizeFull();
    metadataFieldsLayout.setHeight("100%");
    metadataFieldsLayout.addComponent(keyTextField);
    metadataFieldsLayout.addComponent(valueTextArea);
    metadataFieldsLayout.setSpacing(true);
    metadataFieldsLayout.setExpandRatio(valueTextArea, 1F);
    return metadataFieldsLayout;
}

14 View Complete Implementation : DistributionSetInfoPanel.java
Copyright Eclipse Public License 1.0
Author : eclipse
/**
 * Decorate.
 *
 * @param distributionSet
 *            as DistributionSet
 * @param caption
 *            as String
 * @param style1
 *            as String
 * @param style2
 *            as String
 */
private void decorate(final DistributionSet distributionSet, final String caption, final String style1, final String style2) {
    final VaadinMessageSource i18n = SpringContextHelper.getBean(VaadinMessageSource.clreplaced);
    final VerticalLayout layout = new VerticalLayout();
    // Display distribution set name
    layout.addComponent(SPUIComponentProvider.createNameValueLabel(i18n.getMessage("label.dist.details.name"), distributionSet.getName(), distributionSet.getVersion()));
    /* Module info */
    distributionSet.getModules().forEach(module -> layout.addComponent(getSWModlabel(module.getType().getName(), module)));
    layout.setSizeFull();
    layout.setMargin(false);
    layout.setSpacing(false);
    setContent(layout);
    // Decorate specific
    setCaption(caption);
    addStyleName(style1);
    addStyleName(style2);
    addStyleName("small");
    setImmediate(false);
}

14 View Complete Implementation : TargetBulkUpdateWindowLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
private VerticalLayout getTokenFieldLayout() {
    final TagPanelLayout tagPanelLayout = targetBulkTokenTags.getTagPanel();
    tagPanelLayout.setMargin(false);
    final VerticalLayout tokenLayout = SPUIComponentProvider.getDetailTabLayout();
    tokenLayout.addStyleName("bulk-target-tags-layout");
    tokenLayout.addComponent(tagPanelLayout);
    tokenLayout.setSpacing(false);
    tokenLayout.setMargin(false);
    tokenLayout.setSizeFull();
    tokenLayout.setHeight("100px");
    tokenLayout.setId(UIComponentIdProvider.BULK_UPLOAD_TAG);
    return tokenLayout;
}

14 View Complete Implementation : FilterTableDemoUI.java
Copyright Apache License 2.0
Author : tepi
@Override
protected void init(VaadinRequest request) {
    setLocale(new Locale("fi", "FI"));
    VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setMargin(new MarginInfo(true, false, false, false));
    mainLayout.setSizeFull();
    final TabSheet ts = new TabSheet();
    ts.setStyleName(ValoTheme.TABSHEET_COMPACT_TABBAR);
    ts.setSizeFull();
    mainLayout.addComponent(ts);
    mainLayout.setExpandRatio(ts, 1);
    ts.addTab(buildTableTab(), "Normal Table");
    ts.addTab(buildNormalTableTab(), "Normal FilterTable");
    ts.addTab(buildPagedTableTab(), "Paged FilterTable");
    ts.addTab(buildTreeTableTab(), "FilterTreeTable");
    setContent(mainLayout);
}

14 View Complete Implementation : FilterTableDemoUI.java
Copyright Apache License 2.0
Author : tepi
private Component buildTableTab() {
    /* Create FilterTable */
    final Table normalFilterTable = buildTable();
    final VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    mainLayout.setSpacing(true);
    mainLayout.setMargin(true);
    mainLayout.addComponent(normalFilterTable);
    mainLayout.setExpandRatio(normalFilterTable, 1);
    Button addFilter = new Button("Add a filter");
    addFilter.addClickListener(event -> {
        Filterable f = ((Filterable) normalFilterTable.getContainerDataSource());
        f.addContainerFilter(new Filter() {

            @Override
            public boolean preplacedesFilter(Object itemId, Item item) throws UnsupportedOperationException {
                return item != null && ((String) item.gereplacedemProperty("name").getValue()).contains("5");
            }

            @Override
            public boolean appliesToProperty(Object propertyId) {
                return "name".equals(propertyId);
            }
        });
    });
    mainLayout.addComponent(addFilter);
    Panel p = new Panel();
    p.setSizeFull();
    p.setContent(mainLayout);
    return p;
}

13 View Complete Implementation : SensorAdminPanel.java
Copyright Mozilla Public License 2.0
Author : sensiasoft
protected Panel newPanel(String replacedle) {
    Panel panel = new Panel(replacedle);
    VerticalLayout layout = new VerticalLayout();
    layout.setSizeFull();
    layout.setMargin(true);
    layout.setSpacing(true);
    layout.setDefaultComponentAlignment(Alignment.TOP_LEFT);
    panel.setContent(layout);
    return panel;
}

13 View Complete Implementation : Wizard.java
Copyright Apache License 2.0
Author : tehapo
private void init() {
    mainLayout = new VerticalLayout();
    setCompositionRoot(mainLayout);
    setSizeFull();
    contentPanel = new Panel();
    contentPanel.setSizeFull();
    initControlButtons();
    footer = new HorizontalLayout();
    footer.setSpacing(true);
    footer.addComponent(cancelButton);
    footer.addComponent(backButton);
    footer.addComponent(nextButton);
    footer.addComponent(finishButton);
    mainLayout.addComponent(contentPanel);
    mainLayout.addComponent(footer);
    mainLayout.setComponentAlignment(footer, Alignment.BOTTOM_RIGHT);
    mainLayout.setExpandRatio(contentPanel, 1.0f);
    mainLayout.setSizeFull();
    initDefaultHeader();
}

13 View Complete Implementation : DemoUI.java
Copyright Apache License 2.0
Author : tltv
@Override
protected void init(VaadinRequest request) {
    ganttListener = null;
    createGantt();
    MenuBar menu = controlsMenuBar();
    Panel controls = createControls();
    Component wrapper = UriFragmentWrapperFactory.wrapByUriFragment(UI.getCurrent().getPage().getUriFragment(), gantt);
    if (wrapper instanceof GanttListener) {
        ganttListener = (GanttListener) wrapper;
    }
    final VerticalLayout layout = new VerticalLayout();
    layout.setStyleName("demoContentLayout");
    layout.setMargin(false);
    layout.setSizeFull();
    layout.addComponent(menu);
    layout.addComponent(controls);
    layout.addComponent(wrapper);
    layout.setExpandRatio(wrapper, 1);
    setContent(layout);
}

13 View Complete Implementation : MyUI.java
Copyright Apache License 2.0
Author : vaadin
@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);
}

13 View Complete Implementation : MainView.java
Copyright GNU General Public License v3.0
Author : AskNowQA
private Window createOtherSolutionsWindow() {
    final Window otherSolutionsWindow = new Window();
    otherSolutionsWindow.setWidth("700px");
    otherSolutionsWindow.setHeight("700px");
    otherSolutionsWindow.addListener(new Window.CloseListener() {

        @Override
        public void windowClose(CloseEvent e) {
            MainView.this.getApplication().getMainWindow().removeWindow(otherSolutionsWindow);
        }
    });
    VerticalLayout content = new VerticalLayout();
    content.setSizeFull();
    content.setSpacing(true);
    otherSolutionsWindow.setContent(content);
    Label label = new Label("Did you mean?");
    label.setHeight(null);
    label.addStyleName("did-you-mean-header");
    content.addComponent(label);
    final List<Entry<String, String>> otherSolutions = UserSession.getManager().getMoreSolutions();
    final Table table = new Table();
    table.setSizeFull();
    table.setImmediate(true);
    table.addContainerProperty("solution", Label.clreplaced, null);
    table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
    content.addComponent(table);
    content.setExpandRatio(table, 1f);
    Item item;
    for (Entry<String, String> sol : otherSolutions) {
        item = table.addItem(sol);
        item.gereplacedemProperty("solution").setValue(sol);
    }
    table.addGeneratedColumn("solution", new ColumnGenerator() {

        @Override
        public Component generateCell(Table source, final Object itemId, Object columnId) {
            final Entry<String, String> entry = (Entry<String, String>) itemId;
            HorizontalLayout c = new HorizontalLayout();
            c.setHeight("30px");
            c.setWidth(null);
            c.addStyleName("tweet");
            VerticalLayout buttons = new VerticalLayout();
            buttons.setHeight("100%");
            buttons.addStyleName("buttons");
            Button posExampleButton = new Button();
            posExampleButton.setIcon(new ThemeResource("images/thumb_up.png"));
            posExampleButton.addStyleName(BaseTheme.BUTTON_LINK);
            posExampleButton.setDescription("Click if this is what you intended.");
            posExampleButton.addListener(new Button.ClickListener() {

                @Override
                public void buttonClick(ClickEvent event) {
                    MainView.this.getApplication().getMainWindow().removeWindow(otherSolutionsWindow);
                    Answer newAnswer = UserSession.getManager().createAnswer(entry.getKey());
                    resultHolderPanel.removeAllComponents();
                    showAnswer(newAnswer);
                }
            });
            buttons.addComponent(posExampleButton);
            c.addComponent(buttons);
            Label solutionLabel = new Label(entry.getValue());
            solutionLabel.addStyleName("other-solution-label");
            c.addComponent(solutionLabel);
            return c;
        }
    });
    // more button
    final Button moreButton = new Button("More");
    moreButton.setHeight(null);
    moreButton.addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            List<Entry<String, String>> moreOtherSolutions = UserSession.getManager().getMoreSolutions(otherSolutions.size() + 1);
            if (moreOtherSolutions.size() < 10) {
                moreButton.setEnabled(false);
            }
            Item item;
            for (Entry<String, String> sol : moreOtherSolutions) {
                item = table.addItem(sol);
                item.gereplacedemProperty("solution").setValue(sol);
            }
            otherSolutions.addAll(moreOtherSolutions);
        }
    });
    content.addComponent(moreButton);
    content.setComponentAlignment(moreButton, Alignment.MIDDLE_CENTER);
    return otherSolutionsWindow;
}

13 View Complete Implementation : UploadDropAreaLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
private VerticalLayout createDropAreaLayout() {
    final VerticalLayout dropAreaLayout = new VerticalLayout();
    final Label dropHereLabel = new Label(i18n.getMessage(UIMessageIdProvider.LABEL_DROP_AREA_UPLOAD));
    dropHereLabel.setWidth(null);
    final Label dropIcon = new Label(FontAwesome.ARROW_DOWN.getHtml(), ContentMode.HTML);
    dropIcon.addStyleName("drop-icon");
    dropIcon.setWidth(null);
    dropAreaLayout.addComponent(dropIcon);
    dropAreaLayout.setComponentAlignment(dropIcon, Alignment.TOP_CENTER);
    dropAreaLayout.addComponent(dropHereLabel);
    dropAreaLayout.setComponentAlignment(dropHereLabel, Alignment.TOP_CENTER);
    uploadButtonLayout.setWidth(null);
    uploadButtonLayout.addStyleName("upload-button");
    dropAreaLayout.addComponent(uploadButtonLayout);
    dropAreaLayout.setComponentAlignment(uploadButtonLayout, Alignment.BOTTOM_CENTER);
    dropAreaLayout.setSizeFull();
    dropAreaLayout.setStyleName("upload-drop-area-layout-info");
    dropAreaLayout.setSpacing(false);
    return dropAreaLayout;
}

13 View Complete Implementation : UploadArtifactView.java
Copyright Eclipse Public License 1.0
Author : eclipse
private VerticalLayout createDetailsAndUploadLayout() {
    detailAndUploadLayout = new VerticalLayout();
    detailAndUploadLayout.addComponent(artifactDetailsLayout);
    detailAndUploadLayout.setComponentAlignment(artifactDetailsLayout, Alignment.TOP_CENTER);
    detailAndUploadLayout.setExpandRatio(artifactDetailsLayout, 1.0F);
    if (permChecker.hasCreateRepositoryPermission()) {
        detailAndUploadLayout.addComponent(dropAreaLayout.getDropAreaWrapper());
    }
    detailAndUploadLayout.setSizeFull();
    detailAndUploadLayout.addStyleName("group");
    detailAndUploadLayout.setSpacing(true);
    return detailAndUploadLayout;
}

13 View Complete Implementation : GovernmentBodyOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final List<GovernmentBodyAnnualSummary> item = gereplacedem(parameters);
    if (item != null && !item.isEmpty()) {
        getGovernmentBodyMenuItemFactory().createGovernmentBodyMenuBar(menuBar, pageId);
        LabelFactory.createHeader2Label(panelContent, OVERVIEW);
        panel.setCaption(NAME + "::" + GOVERNMENT_BODY + pageId);
        final VerticalLayout overviewLayout = new VerticalLayout();
        overviewLayout.setSizeFull();
        panelContent.addComponent(overviewLayout);
        panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
        getGovernmentBodyMenuItemFactory().createOverviewPage(overviewLayout, pageId);
        getPageActionEventHelper().createPageEvent(ViewAction.VISIT_GOVERNMENT_BODY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    }
    return panelContent;
}

13 View Complete Implementation : PoliticianOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
/**
 * Creates the overview content.
 *
 * @param panelContent the panel content
 * @param personData the person data
 * @param viewRiksdagenPolitician the view riksdagen politician
 * @param pageId the page id
 */
private void createOverviewContent(final VerticalLayout panelContent, final PersonData personData, final ViewRiksdagenPolitician viewRiksdagenPolitician, final String pageId) {
    LabelFactory.createHeader2Label(panelContent, OVERVIEW);
    final Link createPoliticianPageLink = getPageLinkFactory().createPoliticianPageLink(personData);
    panelContent.addComponent(createPoliticianPageLink);
    final Image image = new Image("", new ExternalResource(personData.getImageUrl192().replace("http://", "https://")));
    final HorizontalLayout horizontalLayout = new HorizontalLayout();
    horizontalLayout.setSizeFull();
    panelContent.addComponent(horizontalLayout);
    horizontalLayout.addComponent(image);
    getFormFactory().addFormPanelTextFields(horizontalLayout, viewRiksdagenPolitician, ViewRiksdagenPolitician.clreplaced, AS_LIST);
    final VerticalLayout overviewLayout = new VerticalLayout();
    overviewLayout.setSizeFull();
    panelContent.addComponent(overviewLayout);
    panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
    getPoliticianMenuItemFactory().createOverviewPage(overviewLayout, pageId);
    panelContent.setExpandRatio(createPoliticianPageLink, ContentRatio.SMALL);
    panelContent.setExpandRatio(horizontalLayout, ContentRatio.GRID);
}

13 View Complete Implementation : CRUDBaseSubView.java
Copyright Apache License 2.0
Author : opensecuritycontroller
private void createSubView(String replacedle, ToolbarButtons[] buttons) {
    setSizeFull();
    final VerticalLayout layout = new VerticalLayout();
    layout.addStyleName(StyleConstants.BASE_CONTAINER);
    layout.setSizeFull();
    final VerticalLayout panel = new VerticalLayout();
    panel.addStyleName("panel");
    panel.setSizeFull();
    layout.addComponent(createHeader(replacedle));
    layout.addComponent(panel);
    if (buttons != null) {
        panel.addComponent(createToolbar(buttons));
    }
    panel.addComponent(createTable());
    panel.setExpandRatio(this.table, 1L);
    layout.setExpandRatio(panel, 1L);
    addComponent(layout);
}

12 View Complete Implementation : MultipleTargetFilter.java
Copyright Eclipse Public License 1.0
Author : eclipse
private Component getSimpleFilterTab() {
    simpleFilterTab = new VerticalLayout();
    targetTagTableLayout = new VerticalLayout();
    targetTagTableLayout.setSizeFull();
    if (menu != null) {
        targetTagTableLayout.addComponent(menu);
        targetTagTableLayout.setComponentAlignment(menu, Alignment.TOP_RIGHT);
    }
    targetTagTableLayout.addComponent(filterByButtons);
    targetTagTableLayout.setComponentAlignment(filterByButtons, Alignment.MIDDLE_CENTER);
    targetTagTableLayout.setId(UIComponentIdProvider.TARGET_TAG_DROP_AREA_ID);
    targetTagTableLayout.setExpandRatio(filterByButtons, 1.0F);
    simpleFilterTab.setCaption(i18n.getMessage("caption.filter.simple"));
    simpleFilterTab.addComponent(targetTagTableLayout);
    simpleFilterTab.setExpandRatio(targetTagTableLayout, 1.0F);
    simpleFilterTab.addComponent(filterByStatusFooter);
    simpleFilterTab.setComponentAlignment(filterByStatusFooter, Alignment.MIDDLE_CENTER);
    simpleFilterTab.setSizeFull();
    simpleFilterTab.addStyleName(SPUIStyleDefinitions.SIMPLE_FILTER_HEADER);
    return simpleFilterTab;
}

12 View Complete Implementation : DesignView.java
Copyright GNU General Public License v3.0
Author : JumpMind
@PostConstruct
protected void init() {
    setSizeFull();
    tabbedPanel = new TabbedPanel();
    HorizontalSplitPanel leftSplit = new HorizontalSplitPanel();
    leftSplit.setSizeFull();
    leftSplit.setSplitPosition(UIConstants.DEFAULT_LEFT_SPLIT, Unit.PIXELS);
    projectNavigator = new DesignNavigator(context, tabbedPanel);
    leftSplit.setFirstComponent(projectNavigator);
    VerticalLayout container = new VerticalLayout();
    container.setSizeFull();
    container.addComponent(tabbedPanel);
    leftSplit.setSecondComponent(container);
    addComponent(leftSplit);
}

11 View Complete Implementation : MainView.java
Copyright GNU General Public License v3.0
Author : AskNowQA
private Component createSelectTBSLComponent() {
    l = new VerticalLayout();
    l.setSpacing(true);
    l.setSizeFull();
    IndexedContainer ic = new IndexedContainer();
    ic.addContainerProperty("label", String.clreplaced, null);
    for (ExtendedTBSL tbsl : UserSession.getManager().tbsls) {
        ic.addItem(tbsl).gereplacedemProperty("label").setValue(tbsl.getLabel());
    }
    tbslSelector = new NativeSelect();
    tbslSelector.addStyleName("borderless");
    tbslSelector.setWidth("100%");
    tbslSelector.setHeight(null);
    tbslSelector.setNullSelectionAllowed(false);
    tbslSelector.setContainerDataSource(ic);
    tbslSelector.setImmediate(true);
    tbslSelector.addListener(new ValueChangeListener() {

        @Override
        public void valueChange(ValueChangeEvent event) {
            onChangeKnowledgebase();
        }
    });
    l.addComponent(tbslSelector);
    knowledgebaseLogo = new Embedded("");
    knowledgebaseLogo.setType(Embedded.TYPE_IMAGE);
    knowledgebaseLogo.setHeight("50px");
    l.addComponent(knowledgebaseLogo);
    l.setComponentAlignment(knowledgebaseLogo, Alignment.MIDDLE_CENTER);
    l.setExpandRatio(knowledgebaseLogo, 1f);
    return l;
}

11 View Complete Implementation : TestUI.java
Copyright Apache License 2.0
Author : bsblabs
@Override
protected void init(VaadinRequest request) {
    final VerticalLayout layout = new VerticalLayout();
    layout.setSizeFull();
    layout.setMargin(true);
    layout.setSpacing(true);
    final Button hello = new Button("Hello");
    hello.addClickListener(new Button.ClickListener() {

        public void buttonClick(Button.ClickEvent event) {
            final Notification n = new Notification("Yes, hello", Notification.Type.HUMANIZED_MESSAGE);
            n.setDelayMsec(-1);
            n.show(Page.getCurrent());
        }
    });
    layout.addComponent(hello);
    layout.setComponentAlignment(hello, Alignment.TOP_CENTER);
    setContent(layout);
}

11 View Complete Implementation : CommitteeOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenCommittee viewRiksdagenCommittee = gereplacedem(parameters);
    getCommitteeMenuItemFactory().createCommitteeeMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, OVERVIEW);
    final Link addCommitteePageLink = getPageLinkFactory().addCommitteePageLink(viewRiksdagenCommittee);
    panelContent.addComponent(addCommitteePageLink);
    getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenCommittee, ViewRiksdagenCommittee.clreplaced, AS_LIST);
    final VerticalLayout overviewLayout = new VerticalLayout();
    overviewLayout.setSizeFull();
    panelContent.addComponent(overviewLayout);
    panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
    getCommitteeMenuItemFactory().createOverviewPage(overviewLayout, pageId);
    panelContent.setExpandRatio(addCommitteePageLink, ContentRatio.SMALL);
    panel.setCaption(NAME + "::" + COMMITTEE + viewRiksdagenCommittee.getEmbeddedId().getDetail());
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

11 View Complete Implementation : MinistryOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenMinistry viewRiksdagenMinistry = gereplacedem(parameters);
    getMinistryMenuItemFactory().createMinistryMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, OVERVIEW);
    final Link addMinistryPageLink = getPageLinkFactory().addMinistryPageLink(viewRiksdagenMinistry);
    panelContent.addComponent(addMinistryPageLink);
    getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenMinistry, ViewRiksdagenMinistry.clreplaced, AS_LIST);
    panelContent.setExpandRatio(addMinistryPageLink, ContentRatio.SMALL);
    panel.setCaption(NAME + "::" + MINISTRY + viewRiksdagenMinistry.getNameId());
    final VerticalLayout overviewLayout = new VerticalLayout();
    overviewLayout.setSizeFull();
    panelContent.addComponent(overviewLayout);
    panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
    getMinistryMenuItemFactory().createOverviewPage(overviewLayout, pageId);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

11 View Complete Implementation : UserHomeSecuritySettingsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
/**
 * Creates the enable google auth button.
 *
 * @return the vertical layout
 */
private VerticalLayout createEnableGoogleAuthButton() {
    final VerticalLayout formLayout = new VerticalLayout();
    formLayout.setSizeFull();
    final Panel formPanel = new Panel();
    formPanel.setSizeFull();
    formLayout.addComponent(formPanel);
    final FormLayout formContent = new FormLayout();
    formPanel.setContent(formContent);
    final SetGoogleAuthenticatorCredentialRequest request = new SetGoogleAuthenticatorCredentialRequest();
    request.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
    request.setUserpreplacedword("");
    final ClickListener listener = new SetGoogleAuthenticatorCredentialClickListener(request);
    getFormFactory().addRequestInputFormFields(formContent, request, SetGoogleAuthenticatorCredentialRequest.clreplaced, AS_LIST, ENABLE_GOOGLE_AUTHENTICATOR, listener);
    return formLayout;
}

11 View Complete Implementation : PartyOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenParty viewRiksdagenParty = gereplacedem(parameters);
    getPartyMenuItemFactory().createPartyMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, OVERVIEW);
    final Link addPartyPageLink = getPageLinkFactory().addPartyPageLink(viewRiksdagenParty);
    panelContent.addComponent(addPartyPageLink);
    panelContent.setExpandRatio(addPartyPageLink, ContentRatio.SMALL);
    getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenParty, ViewRiksdagenParty.clreplaced, AS_LIST);
    final DataContainer<ViewRiksdagenPartySummary, String> partySummarydataContainer = getApplicationManager().getDataContainer(ViewRiksdagenPartySummary.clreplaced);
    final ViewRiksdagenPartySummary viewRiksdagenPartySummary = partySummarydataContainer.load(pageId);
    if (viewRiksdagenPartySummary != null) {
        getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenPartySummary, ViewRiksdagenPartySummary.clreplaced, AS_LIST2);
    }
    final VerticalLayout overviewLayout = new VerticalLayout();
    overviewLayout.setSizeFull();
    panelContent.addComponent(overviewLayout);
    panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
    getPartyMenuItemFactory().createOverviewPage(overviewLayout, pageId);
    pageCompleted(parameters, panel, pageId, viewRiksdagenParty);
    return panelContent;
}

11 View Complete Implementation : CRUDBaseView.java
Copyright Apache License 2.0
Author : opensecuritycontroller
/**
 * returns an empty View layout containing CRUD ToolBar, CSS layout, Table
 * with columnList and replacedle of the view
 *
 * @param parentreplacedle
 *            replacedle of the parent panel
 * @param parentCRUDButtons
 *            Array Toolbar buttons to diaplay parent panel
 * @param parentMultiSelect
 *            multi select parent table
 * @param childreplacedle
 *            replacedle of child panel
 * @param childCRUDButtons
 *            Array of toolbar buttons to display in child panel
 * @param parentSubViewList
 *            Map of CRUDBaseSubViews with their respective Button captions for Parent Table
 * @param childSubViewList
 *            Map of CRUDBaseSubViews with their respective Button captions for Child Table
 */
public void createView(String parentreplacedle, List<ToolbarButtons> parentCRUDButtons, boolean parentMultiSelect, String childreplacedle, List<ToolbarButtons> childCRUDButtons, Map<String, CRUDBaseSubView<?, ?>> parentSubViewList, Map<String, CRUDBaseSubView<?, ?>> childSubViewMap) {
    boolean addChildTable = childreplacedle != null;
    setSizeFull();
    this.parentSubViewMap = parentSubViewList;
    this.childSubViewMap = childSubViewMap;
    // parent container with header
    this.parentContainerLayout = new VerticalLayout();
    this.parentContainerLayout.addStyleName(StyleConstants.BASE_CONTAINER);
    this.parentContainerLayout.setSizeFull();
    // parent panel with table and CRUD buttons
    final VerticalLayout parentPanel = new VerticalLayout();
    parentPanel.addStyleName("panel");
    parentPanel.setSizeFull();
    this.parentContainerLayout.addComponent(createHeader(parentreplacedle, false));
    this.parentContainerLayout.addComponent(parentPanel);
    this.infoText = new PageInformationComponent();
    this.infoText.addStyleName(StyleConstants.PAGE_INFO_COMPONENT);
    parentPanel.addComponent(this.infoText);
    if (parentCRUDButtons != null) {
        parentPanel.addComponent(createParentToolbar(parentCRUDButtons));
    }
    parentPanel.addComponent(createParentTable(parentMultiSelect));
    // expand parentTable with parentPanel
    parentPanel.setExpandRatio(this.parentTable, 1L);
    // expand parentPanel with parentContainer
    this.parentContainerLayout.setExpandRatio(parentPanel, 1L);
    if (addChildTable) {
        // child container with header
        this.childContainerLayout = new VerticalLayout();
        this.childContainerLayout.addStyleName(StyleConstants.BASE_CONTAINER);
        this.childContainerLayout.setSizeFull();
        // child panel with table and CRUD buttons
        final VerticalLayout childPanel = new VerticalLayout();
        childPanel.addStyleName("panel");
        childPanel.setSizeFull();
        this.childContainerLayout.addComponent(createHeader(childreplacedle, true));
        this.childContainerLayout.addComponent(childPanel);
        if (childCRUDButtons != null) {
            childPanel.addComponent(createChildToolBar(childCRUDButtons));
        }
        // adding table to panel layout
        childPanel.addComponent(createChildTable());
        // expand childTable with childPanel
        childPanel.setExpandRatio(this.childTable, 1L);
        // expand childPanel with childContainer
        this.childContainerLayout.setExpandRatio(childPanel, 1L);
        this.viewSplitter = new VerticalSplitPanel();
        this.viewSplitter.addStyleName(ValoTheme.SPLITPANEL_LARGE);
        this.viewSplitter.addComponent(this.parentContainerLayout);
        this.viewSplitter.addComponent(this.childContainerLayout);
        this.viewSplitter.setImmediate(true);
        this.viewSplitter.setMaxSplitPosition(75, Unit.PERCENTAGE);
        this.viewSplitter.setMinSplitPosition(25, Unit.PERCENTAGE);
        // adding split panel to the main view
        addComponent(this.viewSplitter);
    } else {
        addComponent(this.parentContainerLayout);
    }
}

11 View Complete Implementation : PreviewCSV.java
Copyright GNU General Public License v3.0
Author : rlsutton1
public Component getContentFromList(List<List<String>> data, String caption, int rowLimit) {
    Table table = new Table();
    table.setSizeFull();
    if (data.size() > 1) {
        IndexedContainer indexedContainer = buildContainerFromList(data, rowLimit);
        /* Finally, let's update the table with the container */
        table.setCaption(caption);
        table.setContainerDataSource(indexedContainer);
        table.setVisible(true);
    } else {
        /* Finally, let's update the table with the container */
        table.setCaption("No file selected");
        table.setVisible(true);
    }
    /* Main layout */
    VerticalLayout layout = new VerticalLayout();
    layout.setMargin(true);
    layout.setSpacing(true);
    layout.setSizeFull();
    layout.addComponent(table);
    layout.setExpandRatio(table, 1);
    return layout;
}

11 View Complete Implementation : DashBoardView.java
Copyright GNU General Public License v3.0
Author : rlsutton1
void createDashboard(Tblportallayout portalLayout) {
    if (portalLayout == null) {
        portalLayout = new Tblportallayout();
        portalLayout.setName("Dashboard " + (getNumberOfPortals() + 1));
        portalLayout.setAccount(getAccountId());
        EnreplacedyManagerProvider.persist(portalLayout);
        container.addBean(portalLayout);
    }
    if (loadJQuery) {
        dashBoard = new DashBoard();
    } else {
        dashBoard = new DashBoardNoJQuery();
    }
    // this wrapper is necessary so the portals in the dashboard resize
    // correctly
    VerticalLayout wrapper = new VerticalLayout();
    wrapper.setSizeFull();
    wrapper.addComponent(dashBoard);
    dashBoard.setSizeFull();
    dashBoardHolderPanel.setContent(wrapper);
    AbstractLayout dashboardToolBar = createToolBar(new DashBoardController(dashBoard), portalLayout.getGuid());
    toolbarHolder.removeAllComponents();
    toolbarHolder.addComponent(dashboardToolBar);
    loading = true;
    dashBoardSelector.setValue(portalLayout);
    loadDashboard(portalLayout, new DashBoardController(dashBoard));
    loading = false;
    dashboardsSlider.setCaption(portalLayout.getName());
}

10 View Complete Implementation : MainView.java
Copyright GNU General Public License v3.0
Author : AskNowQA
private void onShowMap() {
    String queryString = UserSession.getManager().getLearnedSPARQLQuery();
    Query query = QueryFactory.create(queryString, Syntax.syntaxARQ);
    query = JENAUtils.writeOutPrefixes(query);
    String targetVar = query.getProjectVars().get(0).getVarName();
    Knowledgebase kb = UserSession.getManager().getActiveTBSL().getTBSL().getKnowledgebase();
    if (kb instanceof LocalKnowledgebase) {
        return;
    }
    String serviceURI = ((RemoteKnowledgebase) kb).getEndpoint().getURL().toString();
    String url = "";
    try {
        url = Manager.getInstance().getSemMapURL() + "?query=" + URLEncoder.encode(query.toString().replaceAll("[\n\r]", " "), "UTF-8") + "&var=" + targetVar + "&service-uri=" + EscapeUtils.encodeURIComponent(serviceURI);
    } catch (UnsupportedEncodingException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }
    System.out.println(url);
    Embedded e = new Embedded("", new ExternalResource(url));
    e.setAlternateText("Linked Geo Data View");
    e.setType(Embedded.TYPE_BROWSER);
    e.setSizeFull();
    final Window w = new Window("Linked Geo Data View");
    VerticalLayout mainLayout = new VerticalLayout();
    mainLayout.setSizeFull();
    w.setContent(mainLayout);
    w.setHeight("95%");
    w.setWidth("95%");
    w.center();
    mainLayout.addComponent(e);
    w.addListener(new Window.CloseListener() {

        @Override
        public void windowClose(CloseEvent e) {
            MainView.this.getApplication().getMainWindow().removeWindow(w);
        }
    });
    getApplication().getMainWindow().addWindow(w);
}

10 View Complete Implementation : AbstractGridComponentLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
/**
 * Layouts header, grid and optional footer.
 */
protected void buildLayout() {
    setSizeFull();
    setSpacing(true);
    setMargin(false);
    setStyleName("group");
    final VerticalLayout gridHeaderLayout = new VerticalLayout();
    gridHeaderLayout.setSizeFull();
    gridHeaderLayout.setSpacing(false);
    gridHeaderLayout.setMargin(false);
    gridHeaderLayout.setStyleName("table-layout");
    gridHeaderLayout.addComponent(gridHeader);
    gridHeaderLayout.setComponentAlignment(gridHeader, Alignment.TOP_CENTER);
    gridHeaderLayout.addComponent(grid);
    gridHeaderLayout.setComponentAlignment(grid, Alignment.TOP_CENTER);
    gridHeaderLayout.setExpandRatio(grid, 1.0F);
    addComponent(gridHeaderLayout);
    setComponentAlignment(gridHeaderLayout, Alignment.TOP_CENTER);
    setExpandRatio(gridHeaderLayout, 1.0F);
    if (hasFooterSupport()) {
        final Layout footerLayout = getFooterSupport().createFooterMessageComponent();
        addComponent(footerLayout);
        setComponentAlignment(footerLayout, Alignment.BOTTOM_CENTER);
    }
}

10 View Complete Implementation : AbstractTableLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
private void buildLayout() {
    setSizeFull();
    setSpacing(true);
    setMargin(false);
    setStyleName("group");
    final VerticalLayout tableHeaderLayout = new VerticalLayout();
    tableHeaderLayout.setSizeFull();
    tableHeaderLayout.setSpacing(false);
    tableHeaderLayout.setMargin(false);
    tableHeaderLayout.setStyleName("table-layout");
    tableHeaderLayout.addComponent(tableHeader);
    tableHeaderLayout.setComponentAlignment(tableHeader, Alignment.TOP_CENTER);
    if (isShortCutKeysRequired()) {
        final Panel tablePanel = new Panel();
        tablePanel.setStyleName("table-panel");
        tablePanel.setHeight(100.0F, Unit.PERCENTAGE);
        tablePanel.setContent(table);
        tablePanel.addActionHandler(getShortCutKeysHandler(i18n));
        tablePanel.addStyleName(ValoTheme.PANEL_BORDERLESS);
        tableHeaderLayout.addComponent(tablePanel);
        tableHeaderLayout.setComponentAlignment(tablePanel, Alignment.TOP_CENTER);
        tableHeaderLayout.setExpandRatio(tablePanel, 1.0F);
    } else {
        tableHeaderLayout.addComponent(table);
        tableHeaderLayout.setComponentAlignment(table, Alignment.TOP_CENTER);
        tableHeaderLayout.setExpandRatio(table, 1.0F);
    }
    addComponent(tableHeaderLayout);
    addComponent(detailsLayout);
    setComponentAlignment(tableHeaderLayout, Alignment.TOP_CENTER);
    setComponentAlignment(detailsLayout, Alignment.TOP_CENTER);
    setExpandRatio(tableHeaderLayout, 1.0F);
}

10 View Complete Implementation : UserHomeOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final Optional<UserAccount> userAccount = getActiveUserAccount();
    if (userAccount.isPresent()) {
        userHomeMenuItemFactory.createUserHomeMenuBar(menuBar, pageId);
        LabelFactory.createHeader2Label(panelContent, OVERVIEW);
        final Button logoutButton = new Button(LOGOUT, VaadinIcons.SIGN_OUT);
        final LogoutRequest logoutRequest = new LogoutRequest();
        logoutRequest.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
        logoutButton.addClickListener(new LogoutClickListener(logoutRequest));
        panelContent.addComponent(logoutButton);
        getFormFactory().addFormPanelTextFields(panelContent, userAccount.get(), UserAccount.clreplaced, AS_LIST);
        panelContent.setExpandRatio(logoutButton, ContentRatio.SMALL);
        final VerticalLayout overviewLayout = new VerticalLayout();
        overviewLayout.setSizeFull();
        panelContent.addComponent(overviewLayout);
        panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
        userHomeMenuItemFactory.createOverviewPage(overviewLayout);
        panel.setCaption(NAME + "::" + USERHOME);
    }
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_USER_HOME_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}