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.ui.maincontent.ContextRightPanel.java

License:Open Source License

public Panel asPanel() {
    final Panel pnlmetadataRecs = new Panel();
    pnlmetadataRecs.setSizeFull();// w ww  . j  a  va  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(buildOrganizationUnit());
    vl.addComponent(buildAdminDescription());

    pnlmetadataRecs.setContent(vl);
    return pnlmetadataRecs;
}

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

License:Open Source License

private VerticalLayout bindDescription() {
    VerticalLayout descLayout = new VerticalLayout();
    descLayout.setMargin(false);//w  w  w .j av a 2 s  .  co  m
    descLayout.setWidth("100%");
    final Label headerContext = new Label(ViewConstants.DESCRIPTION_LBL + resourceProxy.getDescription());
    headerContext.setStyleName("fullwidth");

    descLayout.addComponent(headerContext);
    return descLayout;
}

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

License:Open Source License

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

    // metaDataRecsAcc
    vlRightPanel.addComponent(buildMetaDataRecsPnl());

    return vlRightPanel;
}

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

License:Open Source License

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

    // vlDirectMember
    VerticalLayout vlDirectMember = new VerticalLayout();
    vlDirectMember.setImmediate(false);/* w ww.java 2 s  . co m*/
    vlDirectMember.setWidth("100.0%");
    vlDirectMember.setHeight("100.0%");
    vlDirectMember.setMargin(false);
    directMembersPanel.setContent(vlDirectMember);
    try {
        new DirectMember(serviceLocation, router, resourceProxy.getId(), mainWindow, repositories,
                directMembersPanel, ResourceType.CONTEXT.toString()).contextAsTree();
    } catch (EscidocClientException e) {
        router.getMainWindow().showNotification(ViewConstants.ERROR_DIRECTMEMBERS + e.getLocalizedMessage(),
                Notification.TYPE_ERROR_MESSAGE);

    }

    return directMembersPanel;
}

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

License:Open Source License

private VerticalLayout bindNameToHeader() {
    VerticalLayout headerLayout = new VerticalLayout();
    headerLayout.setMargin(false);//from  w ww.j av  a  2 s .  co  m
    headerLayout.setWidth("100%");
    final Label headerContext = new Label(ViewConstants.RESOURCE_NAME_CONTEXT + resourceProxy.getName());
    headerContext.setStyleName("h1 fullwidth");
    headerContext.setDescription(ViewConstants.RESOURCE_NAME_CONTEXT);
    headerLayout.addComponent(headerContext);
    return headerLayout;
}

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

License:Open Source License

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

    // 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.ItemView.java

License:Open Source License

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

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

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

License:Open Source License

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

    // vlDirectMember
    final VerticalLayout vlDirectMember = new ItemContent(repositories, resourceProxy, router, controller);
    vlDirectMember.setImmediate(false);//from   w  w  w. jav  a  2 s.  c om
    vlDirectMember.setWidth("100.0%");
    vlDirectMember.setMargin(false);
    directMembersPanel.setContent(vlDirectMember);

    return directMembersPanel;
}

From source file:org.escidoc.browser.ui.maincontent.ItemView.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
    itemPropertiesView = new ItemPropertiesVH(resourceProxy, router, controller);
    vlResourceProperties.addComponent(itemPropertiesView.getContentLayout());
    return vlResourceProperties;
}

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

License:Open Source License

private VerticalLayout buildVlContentPanel() throws EscidocClientException {
    // common part: create layout
    VerticalLayout vlContentPanel = new VerticalLayout();
    vlContentPanel.setImmediate(false);/* ww w.  j  av a 2 s.c  om*/
    vlContentPanel.setWidth("100.0%");
    vlContentPanel.setHeight("100.0%");
    vlContentPanel.setMargin(false);

    final HorizontalSplitPanel horiz = buildHorizontalSplit();
    vlContentPanel.addComponent(horiz);

    return vlContentPanel;
}