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.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 www  .ja  v  a  2s.c  om*/
    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);//from   w w  w  . j ava 2  s.  com
    vlResourceProperties.addComponent(cssLayout);
    return vlResourceProperties;
}

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

License:Open Source License

public Panel asPanel() {
    final Panel pnlmetadataRecs = new Panel();
    pnlmetadataRecs.setSizeFull();/* ww  w  .j av  a2  s .  com*/
    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 buildVlRightPanel() {
    // common part: create layout
    VerticalLayout vlRightPanel = new VerticalLayout();
    vlRightPanel.setImmediate(false);/*from  www  . j  av a 2 s  .  c  om*/
    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);/*from  w  ww.j a v  a  2s  .  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.ItemContent.java

License:Open Source License

private void wrap(final VerticalLayout verticalLayout) {
    try {// ww  w  .j  av  a2s.  c  om
        if (userIsPermittedToUpdate()) {

            verticalLayout.setHeight("99%");

            final DragAndDropFileUpload dragAndDropFileUpload = new DragAndDropFileUpload(repositories,
                    itemProxy, this, verticalLayout);
            dragAndDropFileUpload.setSizeFull();

            addComponent(dragAndDropFileUpload);
            verticalLayout.getParent().setWidth("99%");
            verticalLayout.getParent().setHeight("99%");
        }
    } catch (final EscidocClientException e) {
        LOG.error(e.getMessage());
        showError(e);
    } catch (final URISyntaxException e) {
        LOG.error(e.getMessage());
        showError(e);
    }
}

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  w  w w .jav  a  2 s  .com
    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.ja  v a2  s  .  co 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 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);/* www. j a v  a 2 s.c o m*/
    vlContentPanel.setWidth("100.0%");
    vlContentPanel.setHeight("100.0%");
    vlContentPanel.setMargin(false);

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

    return vlContentPanel;
}