Example usage for com.vaadin.ui VerticalLayout setHeight

List of usage examples for com.vaadin.ui VerticalLayout setHeight

Introduction

In this page you can find the example usage for com.vaadin.ui VerticalLayout setHeight.

Prototype

@Override
    public void setHeight(String height) 

Source Link

Usage

From source file:org.escidoc.browser.ui.maincontent.OrgUnitMetadataRecordsView.java

License:Open Source License

public Panel asPanel() {
    final Panel panel = new Panel();
    panel.setSizeFull();//from   w w w. j a  v  a 2  s. c o m
    panel.setStyleName(Runo.PANEL_LIGHT);
    VerticalLayout vl = new VerticalLayout();
    vl.setImmediate(false);
    vl.setWidth("100.0%");
    vl.setHeight("100.0%");
    vl.setMargin(false);
    vl.addComponent(buildMetaDataTab());

    panel.setContent(vl);
    return panel;
}

From source file:org.escidoc.browser.ui.maincontent.OrgUnitView.java

License:Open Source License

private VerticalLayout buildVlRightPanel() {
    // common part: create layout
    VerticalLayout vlRightPanel = new VerticalLayout();
    vlRightPanel.setImmediate(false);/*from ww w.  jav a2  s. c  om*/
    vlRightPanel.setWidth("100.0%");
    vlRightPanel.setHeight("100.0%");
    vlRightPanel.setMargin(false);

    vlRightPanel.addComponent(buildMetaDataView());
    vlRightPanel.addComponent(buildParentsView());

    return vlRightPanel;
}

From source file:org.escidoc.browser.ui.maincontent.OrgUnitView.java

License:Open Source License

private VerticalLayout buildVlResourceProperties() {
    // common part: create layout
    VerticalLayout vlResourceProperties = new VerticalLayout();
    vlResourceProperties.setImmediate(false);
    vlResourceProperties.setWidth("100.0%");
    vlResourceProperties.setHeight("100px");
    vlResourceProperties.setMargin(false);

    // creating the properties / without the breadcrump
    createProperties(vlResourceProperties);
    return vlResourceProperties;
}

From source file:org.escidoc.browser.ui.maincontent.ParentsView.java

License:Open Source License

public Panel asPanel() {
    final Panel pnlmetadataRecs = new Panel();
    pnlmetadataRecs.setSizeFull();//from  w  w w  .j av  a  2  s . c  o  m
    pnlmetadataRecs.setStyleName(Runo.PANEL_LIGHT);
    VerticalLayout vl = new VerticalLayout();
    vl.setImmediate(false);
    vl.setWidth("100.0%");
    vl.setHeight("100.0%");
    vl.setMargin(false);
    vl.addComponent(buildParentsList());

    pnlmetadataRecs.setContent(vl);
    return pnlmetadataRecs;
}

From source file:org.escidoc.browser.ui.tools.CreateResourcesView.java

License:Open Source License

private VerticalLayout buildVlContentPanel() {
    // common part: create layout
    final VerticalLayout vlContentPanel = new VerticalLayout();
    vlContentPanel.setImmediate(false);//from   www  .  j  ava 2  s.  c  om
    vlContentPanel.setWidth("100.0%");
    vlContentPanel.setHeight("100.0%");
    vlContentPanel.setMargin(false);

    // pnlCreateContext
    final Accordion pnlCreateContext = buildPnlCreateContext();
    vlContentPanel.addComponent(pnlCreateContext);
    vlContentPanel.setExpandRatio(pnlCreateContext, 0.4f);

    // pnlCreate
    final Accordion pnlCreate = buildCreateContentModel();
    vlContentPanel.addComponent(pnlCreate);
    vlContentPanel.setExpandRatio(pnlCreate, 0.3f);

    // pnlCreateOrgUnit
    final Accordion pnlCreateOrgUnit = buildPnlCreateOrgUnit();
    vlContentPanel.addComponent(pnlCreateOrgUnit);
    vlContentPanel.setExpandRatio(pnlCreateOrgUnit, 0.3f);

    // pnlCreateOrgUnit
    final Accordion createUserAccount = buildCreateUserAccount();
    vlContentPanel.addComponent(createUserAccount);
    vlContentPanel.setExpandRatio(createUserAccount, 0.3f);

    return vlContentPanel;
}

From source file:org.escidoc.browser.ui.useraccount.UserAccountView.java

License:Open Source License

private VerticalLayout buildVlContentPanel() {
    // common part: create layout
    VerticalLayout vlContentPanel = new VerticalLayout();
    vlContentPanel.setImmediate(false);//from w  ww  .  j  av a 2  s .  c  o  m
    vlContentPanel.setWidth("100.0%");
    vlContentPanel.setHeight("100.0%");
    vlContentPanel.setMargin(false, true, false, true);

    vlContentPanel.addComponent(buildVlResourceProperties());
    // pnlCreateContext
    Panel panel = buildPanel();

    vlContentPanel.addComponent(panel);
    vlContentPanel.setExpandRatio(panel, 1f);

    return vlContentPanel;
}

From source file:org.escidoc.browser.ui.useraccount.UserAccountView.java

License:Open Source License

private static VerticalLayout buildVerticalLayout() {
    VerticalLayout verticalLayout = new VerticalLayout();
    verticalLayout.setImmediate(false);//w  ww.j av a 2  s. c om
    verticalLayout.setWidth("100.0%");
    verticalLayout.setHeight("100.0%");
    verticalLayout.setMargin(false);
    verticalLayout.setSpacing(false);
    return verticalLayout;
}

From source file:org.escidoc.browser.ui.useraccount.UserAccountView.java

License:Open Source License

private VerticalLayout buildVlResourceProperties() {
    // common part: create layout
    VerticalLayout vlResourceProperties = new VerticalLayout();
    vlResourceProperties.setImmediate(false);
    vlResourceProperties.setWidth("100.0%");
    vlResourceProperties.setHeight("100.0%");
    vlResourceProperties.setMargin(false);

    // creating the properties / without the breadcrump
    resoucePropertiesView = new ResourcePropertiesUserAccountView(userProxy, router, uac);
    resoucePropertiesView.buildViews();/*  www. j  ava2 s .c o  m*/
    vlResourceProperties.addComponent(resoucePropertiesView.getContentLayout());
    return vlResourceProperties;
}

From source file:org.escidoc.browser.ui.UserGroupView.java

License:Open Source License

private VerticalLayout buildVlResourceProperties() {
    // common part: create layout
    VerticalLayout vlResourceProperties = new VerticalLayout();
    vlResourceProperties.setImmediate(false);
    vlResourceProperties.setWidth("100.0%");
    vlResourceProperties.setHeight("130px");
    vlResourceProperties.setMargin(false);

    // creating the properties / without the breadcrump
    resoucePropertiesView = new ResourcePropertiesUserGroupView(resourceProxy, router, controller);
    resoucePropertiesView.buildViews();/*from   www .ja  va  2 s  . c om*/
    vlResourceProperties.addComponent(resoucePropertiesView.getContentLayout());
    return vlResourceProperties;
}

From source file:org.generationcp.breeding.manager.crossingmanager.EmbeddedGermplasmListDetailComponent.java

License:Open Source License

@Override
public void afterPropertiesSet() throws Exception {
    setMargin(false);/*  www .j ava 2  s.  c  om*/
    setSpacing(true);
    setWidth("800px");

    Tool tool = null;
    try {
        tool = workbenchDataManager.getToolWithName(ToolName.germplasm_list_browser.toString());
    } catch (MiddlewareQueryException qe) {
        LOG.error("QueryException", qe);
    }

    ExternalResource listBrowserLink = null;
    if (tool == null) {
        listBrowserLink = new ExternalResource(
                "http://localhost:18080/GermplasmStudyBrowser/main/germplasmlist-" + listId);
    } else {
        listBrowserLink = new ExternalResource(
                tool.getPath().replace("germplasmlist/", "germplasmlist-") + listId);
    }

    VerticalLayout layoutForList = new VerticalLayout();
    layoutForList.setMargin(false);
    layoutForList.setSpacing(false);

    Embedded listInfoPage = new Embedded("", listBrowserLink);
    listInfoPage.setType(Embedded.TYPE_BROWSER);
    listInfoPage.setSizeFull();
    layoutForList.setHeight("550px");
    layoutForList.addComponent(listInfoPage);

    CrossingManagerImportButtonClickListener listener = new CrossingManagerImportButtonClickListener(this);

    exportButton = new Button();
    exportButton.setData(EXPORT_BUTTON_ID);
    exportButton.addListener(listener);

    makeCrossesButton = new Button();
    makeCrossesButton.setData(MAKE_CROSSES_BUTTON_ID);
    makeCrossesButton.addListener(listener);

    HorizontalLayout buttonArea = new HorizontalLayout();
    buttonArea.setMargin(true);
    buttonArea.setSpacing(true);
    buttonArea.addComponent(exportButton);
    buttonArea.addComponent(makeCrossesButton);

    addComponent(layoutForList);
    addComponent(buttonArea);
    setComponentAlignment(buttonArea, Alignment.BOTTOM_RIGHT);
}