Example usage for com.vaadin.ui Panel setWidth

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

Introduction

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

Prototype

@Override
    public void setWidth(String width) 

Source Link

Usage

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

License:Open Source License

private Panel buildMetaViewsPanel() throws EscidocClientException {
    // common part: create layout
    Panel metaViewsPanel = new Panel();
    metaViewsPanel.setImmediate(false);/*from   w w  w. j  a v a 2 s  .  c  om*/
    metaViewsPanel.setWidth("100.0%");
    metaViewsPanel.setHeight("100.0%");
    metaViewsPanel.setStyleName(Runo.PANEL_LIGHT);

    // hlMetaViews
    HorizontalLayout hlMetaViews = buildHlMetaViews();
    metaViewsPanel.setContent(hlMetaViews);

    return metaViewsPanel;
}

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

License:Open Source License

private Panel buildLeftPanel() throws EscidocClientException {
    // common part: create layout
    Panel leftPanel = new Panel();
    leftPanel.setImmediate(false);/*from w  w w  . jav  a  2  s .c  o  m*/
    leftPanel.setWidth("100.0%");
    leftPanel.setHeight("100.0%");

    // vlLeftPanel
    VerticalLayout vlLeftPanel = buildVlLeftPanel();
    leftPanel.setContent(vlLeftPanel);

    return leftPanel;
}

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

License:Open Source License

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

    // vlResourceProperties
    VerticalLayout vlResourceProperties = buildVlResourceProperties();
    resourcePropertiesPanel.setContent(vlResourceProperties);

    return resourcePropertiesPanel;
}

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

License:Open Source License

private static Panel buildLeftPropertiesPnl() {
    Panel pnlPropertiesLeft = new Panel();
    pnlPropertiesLeft.setWidth("40%");
    pnlPropertiesLeft.setHeight("60px");
    pnlPropertiesLeft.setStyleName("floatleft");
    pnlPropertiesLeft.addStyleName(Runo.PANEL_LIGHT);

    VerticalLayout vl = new VerticalLayout();
    vl.setMargin(false);/*from  w w  w  .  j  a  va  2  s . co m*/
    pnlPropertiesLeft.setContent(vl);
    return pnlPropertiesLeft;
}

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

License:Open Source License

private static Panel buildRightPnlProperties() {
    Panel pnlPropertiesRight = new Panel();
    pnlPropertiesRight.setWidth("60%");
    pnlPropertiesRight.setHeight("60px");
    pnlPropertiesRight.setStyleName("floatright");
    pnlPropertiesRight.addStyleName(Runo.PANEL_LIGHT);
    VerticalLayout vl = new VerticalLayout();
    vl.setMargin(false);//from  w w w  . j  a v a  2  s .c o  m
    pnlPropertiesRight.setContent(vl);
    return pnlPropertiesRight;
}

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

License:Open Source License

@SuppressWarnings("serial")
private Panel buildAdminDescription() {
    final Panel admDescriptors = new Panel();
    admDescriptors.setWidth("100%");
    admDescriptors.setHeight("100%");
    VerticalLayout vl = new VerticalLayout();
    vl.setSizeFull();/*from www  .j a va 2 s . c om*/
    final CssLayout cssLayout = new CssLayout();
    buildPanelHeader(cssLayout, ViewConstants.ADMIN_DESCRIPTION);
    ThemeResource ICON = new ThemeResource("images/assets/plus.png");
    if (contextController.canUpdateContext()) {
        final Button addResourceButton = new Button();
        addResourceButton.setStyleName(BaseTheme.BUTTON_LINK);
        addResourceButton.addStyleName("floatright paddingtop3");
        addResourceButton.setWidth("20px");
        addResourceButton.setIcon(ICON);
        addResourceButton.addListener(new ClickListener() {
            @Override
            public void buttonClick(@SuppressWarnings("unused") ClickEvent event) {
                new OnContextAdminDescriptor(router, contextController).adminDescriptorForm();
            }
        });
        cssLayout.addComponent(addResourceButton);
    }
    vl.addComponent(cssLayout);

    VerticalLayout vl2 = new VerticalLayout();
    final AdminDescriptors admDesc = resourceProxy.getAdminDescription();
    final AdminDescriptorsTable adminDescriptorTable = new AdminDescriptorsTable(contextController, admDesc,
            router);
    adminDescriptorTable.buildTable();
    vl2.addComponent(adminDescriptorTable);
    vl.addComponent(vl2);
    vl.setExpandRatio(vl2, 9);
    admDescriptors.setContent(vl);
    return admDescriptors;
}

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 w  w.ja va 2 s .c o 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.ContextView.java

License:Open Source License

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

    // vlResourceProperties
    vlResourceProperties = buildVlResourceProperties();
    resourcePropertiesPanel.setContent(vlResourceProperties);

    return resourcePropertiesPanel;
}

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

License:Open Source License

private Panel buildMembersPanel() {
    // common part: create layout
    Panel metaViewsPanel = new Panel();
    metaViewsPanel.setImmediate(false);// w  w  w  .  ja va  2s .c o  m
    metaViewsPanel.setWidth("100.0%");
    // metaViewsPanel.setHeight("100.0%");
    metaViewsPanel.setStyleName(Runo.PANEL_LIGHT);

    FolderChildrenVH folderChildrenView = new FolderChildrenVH(folderController, resourceProxy, repositories);
    folderChildrenView.buildTable();
    metaViewsPanel.setContent(folderChildrenView);

    return metaViewsPanel;
}

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

License:Open Source License

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

    // vlResourceProperties
    VerticalLayout vlResourceProperties = buildVlResourceProperties();
    resourcePropertiesPanel.setContent(vlResourceProperties);

    return resourcePropertiesPanel;
}