Example usage for com.vaadin.ui VerticalLayout setWidth

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

Introduction

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

Prototype

@Override
    public void setWidth(String width) 

Source Link

Usage

From source file:org.escidoc.browser.controller.ContentModelView.java

License:Open Source License

private Component bindDescriptionToHeader() {
    VerticalLayout l = new VerticalLayout();
    l.setMargin(false);//from  ww w .  j a va  2 s .c o  m
    l.setWidth("100%");
    l.addComponent(new Label(ViewConstants.DESCRIPTION_LBL + resourceProxy.getDescription()));
    return l;
}

From source file:org.escidoc.browser.controller.ContentModelView.java

License:Open Source License

private VerticalLayout bindNameToHeader() {
    VerticalLayout headerLayout = new VerticalLayout();
    headerLayout.setMargin(false);//w w w . j  a v a  2 s . c om
    headerLayout.setWidth("100%");
    final Label headerContext = new Label("Content Model: " + resourceProxy.getName());
    headerContext.setStyleName("h1 fullwidth");
    headerContext.setDescription("Content Model");
    headerLayout.addComponent(headerContext);
    return headerLayout;
}

From source file:org.escidoc.browser.ekinematixmodule.views.RechercheView.java

License:Open Source License

private VerticalLayout buildVlContentPanel() throws EscidocClientException {
    // common part: create layout
    VerticalLayout vlContentPanel = new VerticalLayout();
    vlContentPanel.setImmediate(false);/*from ww w .  ja  v a  2  s . co m*/
    vlContentPanel.setWidth("100.0%");
    vlContentPanel.setHeight("100.0%");
    vlContentPanel.setMargin(false, true, false, true);

    // breadCrumpPanel
    Panel breadCrump = buildBreadCrumpPanel();
    vlContentPanel.addComponent(breadCrump);
    // Permanent Link
    new CreateResourceLinksVH(mainWindow.getURL().toString(), resourceProxy, vlContentPanel, router);

    return vlContentPanel;
}

From source file:org.escidoc.browser.ekinematixmodule.views.RechercheView.java

License:Open Source License

private Panel buildBreadCrumpPanel() {
    // common part: create layout
    Panel breadCrumpPanel = new Panel();
    breadCrumpPanel.setImmediate(false);
    breadCrumpPanel.setWidth("100.0%");
    breadCrumpPanel.setHeight("30px");
    breadCrumpPanel.setStyleName(Runo.PANEL_LIGHT);

    // vlBreadCrump
    VerticalLayout vlBreadCrump = new VerticalLayout();
    vlBreadCrump.setImmediate(false);//from  w ww .  jav a2 s .c  o  m
    vlBreadCrump.setWidth("100.0%");
    vlBreadCrump.setHeight("100.0%");
    vlBreadCrump.setMargin(false);
    breadCrumpPanel.setContent(vlBreadCrump);

    // BreadCreumb
    new BreadCrumbMenu(breadCrumpPanel, resourceProxy);

    return breadCrumpPanel;
}

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

License:Open Source License

public Panel asPanel() {
    final Panel pnlmetadataRecs = new Panel();
    pnlmetadataRecs.setSizeFull();/*from  ww  w  . ja  v a 2 s  . c o  m*/
    VerticalLayout vl = new VerticalLayout();
    vl.setImmediate(false);
    vl.setWidth("100.0%");
    vl.setHeight("100.0%");
    vl.setMargin(false);
    vl.addComponent(lblMetadaRecs());

    pnlmetadataRecs.setContent(vl);
    return pnlmetadataRecs;
}

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

License:Open Source License

private VerticalLayout buildVlContentPanel() throws EscidocClientException {
    // common part: create layout
    VerticalLayout vlContentPanel = new VerticalLayout();
    vlContentPanel.setImmediate(false);/*from   w  ww  .j ava  2s. co m*/
    vlContentPanel.setWidth("100.0%");
    vlContentPanel.setHeight("100.0%");
    vlContentPanel.setMargin(false, true, false, true);

    new CreateResourceLinksVH(mainWindow.getURL().toString(), resourceProxy, vlContentPanel, router);

    // resourcePropertiesPanel
    Panel resourcePropertiesPanel = buildResourcePropertiesPanel();
    vlContentPanel.addComponent(resourcePropertiesPanel);
    vlContentPanel.setExpandRatio(resourcePropertiesPanel, 1.5f);

    // metaViewsPanel contains Panel for the DirectMembers & for the Metas
    Panel metaViewsPanel = buildMetaViewsPanel();
    vlContentPanel.addComponent(metaViewsPanel);
    vlContentPanel.setExpandRatio(metaViewsPanel, 8.0f);

    return vlContentPanel;
}

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

License:Open Source License

private VerticalLayout buildVlRightPanel() {
    // common part: create layout
    VerticalLayout vlRightPanel = new VerticalLayout();
    vlRightPanel.setImmediate(false);// w  ww.  j a v a 2s.  c o m
    vlRightPanel.setWidth("100.0%");
    vlRightPanel.setHeight("100.0%");
    vlRightPanel.setMargin(false);

    // metaDataRecsAcc
    Panel metaDataRecsAcc = new ContainerMetadataRecordsView(resourceProxy, repositories, router,
            containerController).asPanel();
    vlRightPanel.addComponent(metaDataRecsAcc);
    return vlRightPanel;
}

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

License:Open Source License

private VerticalLayout buildVlLeftPanel() throws EscidocClientException {
    // common part: create layout
    VerticalLayout vlLeftPanel = new VerticalLayout();
    vlLeftPanel.setImmediate(false);// w  w  w.j av a  2 s  . com
    vlLeftPanel.setWidth("100.0%");
    vlLeftPanel.setHeight("100.0%");
    vlLeftPanel.setMargin(false);

    // directMembersPanel
    Panel directMembersPanel = buildDirectMembersPanel();
    directMembersPanel.setStyleName("directmembers");
    vlLeftPanel.addComponent(directMembersPanel);

    return vlLeftPanel;
}

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

License:Open Source License

private Panel buildDirectMembersPanel() throws EscidocClientException {
    // common part: create layout
    Panel directMembersPanel = new Panel();
    directMembersPanel.setImmediate(true);
    directMembersPanel.setSizeFull();/*from w  w w .j av  a 2s  . c  o m*/
    directMembersPanel.setScrollable(true);
    directMembersPanel.setStyleName(Runo.PANEL_LIGHT);

    // vlDirectMember
    VerticalLayout vlDirectMember = new VerticalLayout();
    vlDirectMember.setImmediate(true);
    vlDirectMember.setWidth("100.0%");
    vlDirectMember.setHeight("100.0%");
    vlDirectMember.setMargin(false);
    directMembersPanel.setContent(vlDirectMember);
    new DirectMember(serviceLocation, router, resourceProxy.getId(), mainWindow, repositories,
            directMembersPanel, ResourceType.CONTAINER.toString()).containerAsTree();

    return directMembersPanel;
}

From source file:org.escidoc.browser.ui.maincontent.ContainerView.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);

    CssLayout cssLayout = new CssLayout();
    cssLayout.setWidth("100%");
    cssLayout.setHeight("100%");

    // creating the properties / without the breadcrump
    createProperties(cssLayout);/*w w  w  . jav  a  2  s  . co m*/
    vlResourceProperties.addComponent(cssLayout);
    return vlResourceProperties;
}