Example usage for com.vaadin.ui HorizontalSplitPanel HorizontalSplitPanel

List of usage examples for com.vaadin.ui HorizontalSplitPanel HorizontalSplitPanel

Introduction

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

Prototype

public HorizontalSplitPanel() 

Source Link

Document

Creates an empty horizontal split panel.

Usage

From source file:dhbw.ka.mwi.businesshorizon2.ui.parameterScreen.ParameterScreenViewImpl.java

License:Open Source License

/**
* Diese Methode setzt das Layout fr den Screen fest sowie den Titel der Anwendung.
*
* @author Christian Scherer, Mirko Gpfrich, Marco Glaser
*///from  w  ww . j  ava 2 s. c  o m
private void generateUi() {

    mainLayout.setSizeFull();
    mainLayout.setStyleName("mainLayout");
    leftLayout.setSizeFull();
    leftLayout.setStyleName("leftContainer");
    rightLayout.setSizeFull();
    bottomLayout.setSizeFull();
    bottomLeftLayout.setSizeFull();
    //leftContentLayout.setWidth(85, UNITS_PERCENTAGE);
    //leftContentLayout.setHeight(100, UNITS_PERCENTAGE);
    topRightLayout.setStyleName("topBar");
    leftContentLayout.setSizeFull();

    horizontalSplitPanel = new HorizontalSplitPanel();
    horizontalSplitPanel.setSplitPosition(30, UNITS_PERCENTAGE);
    horizontalSplitPanel.setLocked(true);
    horizontalSplitPanel.setStyleName("horizontalMain");
    verticalSplitPanel = new VerticalSplitPanel();
    verticalSplitPanel.setSplitPosition(15, UNITS_PERCENTAGE);
    verticalSplitPanel.setLocked(true);
    verticalSplitPanel.setWidth(90, UNITS_PERCENTAGE);
    verticalSplitPanel.setHeight(100, UNITS_PERCENTAGE);
    horizontalSplitPanelRight = new HorizontalSplitPanel();
    horizontalSplitPanelRight.setSplitPosition(30, UNITS_PERCENTAGE);
    horizontalSplitPanelRight.setLocked(true);
    horizontalSplitPanelRight.addStyleName("horizontalBottom");
    horizontalSplitPanelRight.setHeight(90, UNITS_PERCENTAGE);
    horizontalSplitPanelRight.setWidth(100, UNITS_PERCENTAGE);

    leftL = new Label("links");
    rightTopL = new Label("rechts Oben");
    rightBottomL = new Label("rechts Unten");
    leftBottomL = new Label("links Unten");

    rightLayout.addComponent(verticalSplitPanel);
    //   topRightLayout.addComponent(rightTopL);
    //   bottomRightLayout.addComponent(rightBottomL);
    //   bottomLeftLayout.addComponent(leftBottomL);
    bottomLayout.addComponent(horizontalSplitPanelRight);

    horizontalSplitPanel.addComponent(leftLayout);
    horizontalSplitPanel.addComponent(rightLayout);

    verticalSplitPanel.addComponent(topRightLayout);
    verticalSplitPanel.addComponent(bottomLayout);

    horizontalSplitPanelRight.addComponent(bottomLeftLayout);
    horizontalSplitPanelRight.addComponent(bottomRightLayout);

    rightLayout.setComponentAlignment(verticalSplitPanel, Alignment.MIDDLE_CENTER);
    bottomLayout.setComponentAlignment(horizontalSplitPanelRight, Alignment.MIDDLE_CENTER);

    mainLayout.addComponent(horizontalSplitPanel);

    setContent(mainLayout);

    //linke Seite Logo
    leftLogolayout = new VerticalLayout();
    leftLogolayout.setWidth(Sizeable.SIZE_UNDEFINED, 0);
    leftLogolayout.setHeight(100, UNITS_PERCENTAGE);

    logo = new Embedded(null, new ThemeResource("images/Logo_businesshorizon.png"));

    leftLogolayout.addComponent(logo);
    leftLogolayout.setComponentAlignment(logo, Alignment.MIDDLE_CENTER);

    //linke Seite Infos
    gap = new Label();
    gap.setHeight("10px");

    titleIcon = new Embedded(null, new ThemeResource(
            "./images/icons/newIcons/1418775155_device_board_presentation_content_chart-128.png"));
    titleIcon.setWidth(70, UNITS_PIXELS);
    titleIcon.setHeight(70, UNITS_PIXELS);

    seitenLabel = new Label("Schritt 2");
    seitenLabel.setStyleName("seitenLabel");
    seitenLabel.setWidth(Sizeable.SIZE_UNDEFINED, 0);

    splitter = new Label("<hr style='border:none;background-color:black;height:2px'>", Label.CONTENT_XHTML);
    splitter.setWidth(98, UNITS_PERCENTAGE);

    descriptionLabel = new Label("Stochastische Methode:");
    descriptionLabel.setStyleName("descriptionLabel");
    descriptionLabel.setWidth(Sizeable.SIZE_UNDEFINED, 0);

    descriptionLabel2 = new Label("Bitte geben Sie die Parameter ein");
    descriptionLabel2.setStyleName("descriptionLabel");
    descriptionLabel2.setWidth(Sizeable.SIZE_UNDEFINED, 0);

    descriptionLayout = new VerticalLayout();
    descriptionLayout.addComponent(descriptionLabel);
    descriptionLayout.addComponent(descriptionLabel2);
    descriptionLayout.setComponentAlignment(descriptionLabel, Alignment.TOP_CENTER);
    descriptionLayout.setComponentAlignment(descriptionLabel2, Alignment.MIDDLE_CENTER);
    descriptionLayout.setWidth(100, UNITS_PERCENTAGE);
    descriptionLayout.setHeight(60, UNITS_PIXELS);

    splitter2 = new Label("<hr style='border:none;background-color:black;height:2px'>", Label.CONTENT_XHTML);
    splitter2.setWidth(98, UNITS_PERCENTAGE);

    middleGap = new Label();
    middleGap.setHeight("10px");

    menuButtonsLayout = new HorizontalLayout();
    menuButtonsLayout.setWidth(100, UNITS_PERCENTAGE);
    menuButtonsLayout.setHeight(Sizeable.SIZE_UNDEFINED, 0);

    homeButtonLayout = new VerticalLayout();
    homeButtonLayout.setSizeFull();

    homeButton = new Button();
    homeButton.setHeight(30, UNITS_PIXELS);
    homeButton.setWidth(30, UNITS_PIXELS);
    homeButton.setStyleName("homeButton");

    homeButtonLabel = new Label("Startseite");
    homeButtonLabel.setWidth(Sizeable.SIZE_UNDEFINED, 0);
    homeButtonLabel.setStyleName("topBarButtonLabel");

    homeButtonLayout.addComponent(homeButton);
    homeButtonLayout.addComponent(homeButtonLabel);
    homeButtonLayout.setComponentAlignment(homeButton, Alignment.TOP_CENTER);
    homeButtonLayout.setComponentAlignment(homeButtonLabel, Alignment.MIDDLE_CENTER);

    menuButtonsLayout.addComponent(homeButtonLayout);
    //
    //   accountButtonLayout = new VerticalLayout();
    //   accountButtonLayout.setSizeFull();
    //   
    //   accountButton = new Button();
    //   accountButton.setHeight(30, UNITS_PIXELS);
    //   accountButton.setWidth(30, UNITS_PIXELS);
    //   accountButton.setStyleName("accountButton");
    //   
    //   accountButtonLabel = new Label("Mein Konto");
    //   accountButtonLabel.setWidth(Sizeable.SIZE_UNDEFINED, 0);
    //   accountButtonLabel.setStyleName("topBarButtonLabel");
    //   
    //   accountButtonLayout.addComponent(accountButton);
    //   accountButtonLayout.addComponent(accountButtonLabel);
    //   accountButtonLayout.setComponentAlignment(accountButton, Alignment.TOP_CENTER);;
    //   accountButtonLayout.setComponentAlignment(accountButtonLabel, Alignment.MIDDLE_CENTER);
    //   
    //   menuButtonsLayout.addComponent(accountButtonLayout);

    bottomGap = new Label();
    bottomGap.setHeight("380px");

    leftContentLayout.addComponent(gap);
    leftContentLayout.addComponent(titleIcon);
    leftContentLayout.addComponent(seitenLabel);
    leftContentLayout.addComponent(splitter);
    leftContentLayout.addComponent(descriptionLayout);
    leftContentLayout.addComponent(splitter2);
    leftContentLayout.addComponent(middleGap);
    leftContentLayout.addComponent(menuButtonsLayout);
    leftContentLayout.addComponent(bottomGap);

    leftContentLayout.setComponentAlignment(seitenLabel, Alignment.TOP_CENTER);
    leftContentLayout.setComponentAlignment(titleIcon, Alignment.TOP_CENTER);

    leftLayout.addComponent(leftLogolayout);
    leftLayout.addComponent(leftContentLayout);
    leftLayout.setExpandRatio(leftContentLayout, 1.0f);

    //Buttonleiste oben

    TopBarButton button = new TopBarButton("saveButton", "Speichern");
    addTopButton(button.getButtonComponent());
    button = new TopBarButton("resetInput", "Daten zurcksetzen");
    addTopButton(button.getButtonComponent());
    button = new TopBarButton("back", "Zurck");
    addTopButton(button.getButtonComponent());
    button = new TopBarButton("abbort", "Abbrechen");
    addTopButton(button.getButtonComponent());
    button.getButton().addListener(new Button.ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            System.out.println("cancel on safe");
            presenter.abbrechen();
        }

    });

}

From source file:dhbw.ka.mwi.businesshorizon2.ui.process.period.PeriodViewImpl.java

License:Open Source License

/**
 * Erstelle das GUI zum Prozessschritt "Perioden"
 * //from  w ww.  j ava  2  s.  c om
 * @author Daniel Dengler
 */
private void generateUi() {
    setSizeFull();
    setSplitPosition(60, UNITS_PERCENTAGE);
    setSizeFull();
    setLocked(true);
    setStyleName("small");
    setMargin(true);
    horizontalPanel = new HorizontalSplitPanel();
    horizontalPanel.setSplitPosition(35, UNITS_PERCENTAGE);
    horizontalPanel.setSizeFull();
    horizontalPanel.setLocked(true);
    horizontalPanel.setStyleName("small");
    setFirstComponent(horizontalPanel);

    VerticalLayout infoBox = new VerticalLayout();
    infoBox.setMargin(true);
    Label infoText1 = new Label("<h3>Eingabe der Perioden</h3>");
    infoText1.setContentMode(Label.CONTENT_XHTML);
    Label infoText2 = new Label(
            "Der Zeitstrahl ist gem Ihren gettigten Eingaben vorgegeben. Mit einem Klick auf den Jahresbutton knnen Sie die entsprechenden Werte eintragen.");
    Label infoText3 = new Label("<h3>Direkte Eingabe der Cashflows:</h3>");
    infoText3.setContentMode(Label.CONTENT_XHTML);
    Label infoText4 = new Label(
            "Whlen Sie nun bitte die links angezeigten Perioden aus und geben Sie fr jede Periode sowohl den Cashflow als auch das Fremdkapital der jeweiligen Periode an.");
    Label infoText5 = new Label("<h3>Gesamtkostenverfahren:</h3>");
    infoText5.setContentMode(Label.CONTENT_XHTML);
    Label infoText6 = new Label(
            "Whlen Sie nun bitte die links angezeigten Perioden aus und geben Sie fr jede Periode die abgefragten Daten zur Berechnung des Cashflows an. Die bentigten Datenstze entnehmen Sie bitte Ihrer Gewinn- und Verlustrechnung, erstellt nach dem Gesamtkostenverfahren.");
    Label infoText7 = new Label("<h3>Umsatzkostenverfahren:</h3>");
    infoText7.setContentMode(Label.CONTENT_XHTML);
    Label infoText8 = new Label(
            "Whlen Sie nun bitte die links angezeigten Perioden aus und geben Sie fr jede Periode die abgefragten Daten zur Berechnung des Cashflows an. Die bentigten Datenstze entnehmen Sie bitte Ihrer Gewinn- und Verlustrechnung, erstellt nach dem Umsatzkostenverfahren.");

    infoBox.addComponent(infoText1);
    infoBox.addComponent(infoText2);
    infoBox.addComponent(infoText3);
    infoBox.addComponent(infoText4);
    infoBox.addComponent(infoText5);
    infoBox.addComponent(infoText6);
    infoBox.addComponent(infoText7);
    infoBox.addComponent(infoText8);

    setSecondComponent(infoBox);

}

From source file:dhbw.ka.mwi.businesshorizon2.ui.process.ProcessViewImpl.java

License:Open Source License

/**
 * Diese Methode setzt die obere und die zwei unteren Views in der Prozessansicht.
 * /* ww  w.j a  va2  s .  com*/
 * @author: Mirko Gpfrich
 */

@Override
public void showView(View topView, View bottomLeftView, View bottomRigthView) {
    verticalSplitPanel.setFirstComponent((Component) topView);

    //Teilt das Panel horizontal un zwei gleiche Bereiche auf und ertstellt eine vertiakel Trennlinie (nicht verstellbar.)
    horizontalSplitPanel = new HorizontalSplitPanel();
    horizontalSplitPanel.setSizeFull();
    horizontalSplitPanel.setSplitPosition(50, UNITS_PERCENTAGE);
    horizontalSplitPanel.setLocked(true);
    horizontalSplitPanel.setStyleName("small");

    horizontalSplitPanel.setFirstComponent((Component) bottomLeftView);
    horizontalSplitPanel.setSecondComponent((Component) bottomRigthView);

    //fgt dem unteren vertikalen Panel ein horizontales SplitPanel hinzu.
    verticalSplitPanel.setSecondComponent(horizontalSplitPanel);
    logger.debug(
            "Horizontales SplitPanel fr Prozessschritte und Infos erstellt und an das untere vertikale Panel bergeben");

}

From source file:edu.cornell.qatarmed.planrnaseq.AnnotateRNAseq.java

private void initLayout() {

    /* Root of the user interface component tree is set */
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
    setContent(splitPanel);/*from  www  .  ja v a 2 s. com*/

    /* Build the component tree */
    VerticalLayout leftLayout = new VerticalLayout();
    VerticalLayout rightLayout = new VerticalLayout();

    splitPanel.addComponent(leftLayout);
    splitPanel.addComponent(rightLayout);

    /*
     //make form asking parameters and add it to leftLaayout
     VerticalLayout formLayout = new VerticalLayout();
     // TextField studyName = new TextField("RNAseq Study Name");
     formLayout.addComponent(studyName);
     List replist = new ArrayList();
     ComboBox numReplicates = new ComboBox("Replicates", replist);
     formLayout.addComponent(numReplicates);
     leftLayout.addComponent(formLayout);
     */
    leftLayout.addComponent(tree);
    /* Set the contents in the left of the split panel to use all the space */
    leftLayout.setSizeFull();

    /*        VerticalLayout resultLayout = new VerticalLayout();
     rightLayout.addComponent(resultLayout);
     VerticalLayout chartLayout = new VerticalLayout();
     rightLayout.addComponent(chartLayout);
            
     chartLayout.setVisible(false);
     */
    initRNAseqTable();

}

From source file:edu.cornell.qatarmed.planrnaseq.AnnotateRNAseq1.java

private void initLayout() {

    /* Root of the user interface component tree is set */
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
    setContent(splitPanel);/*from  w ww  . j  a v  a  2 s  .c o m*/

    /* Build the component tree */
    VerticalLayout leftLayout = new VerticalLayout();
    VerticalLayout rightLayout = new VerticalLayout();

    splitPanel.addComponent(leftLayout);
    splitPanel.addComponent(rightLayout);

    /*
     //make form asking parameters and add it to leftLaayout
     VerticalLayout formLayout = new VerticalLayout();
     // TextField studyName = new TextField("RNAseq Study Name");
     formLayout.addComponent(studyName);
     List replist = new ArrayList();
     ComboBox numReplicates = new ComboBox("Replicates", replist);
     formLayout.addComponent(numReplicates);
     leftLayout.addComponent(formLayout);
     */
    initRNAseqTable();
    bioprojectSummaryTable.setSizeFull();
    leftLayout.addComponent(bioprojectSummaryTable);
    /* Set the contents in the left of the split panel to use all the space */
    leftLayout.setSizeFull();

    /*        VerticalLayout resultLayout = new VerticalLayout();
     rightLayout.addComponent(resultLayout);
     VerticalLayout chartLayout = new VerticalLayout();
     rightLayout.addComponent(chartLayout);
            
     chartLayout.setVisible(false);
     */

    rightLayout.addComponent(tree);

    rightLayout.setSizeFull();

}

From source file:edu.cornell.qatarmed.planrnaseq.AnnotateRNAseqSQL.java

private void initLayout() {

    /* Root of the user interface component tree is set */
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
    setContent(splitPanel);// w ww.j  av a2s .  co  m

    /* Build the component tree */
    VerticalLayout leftLayout = new VerticalLayout();
    VerticalSplitPanel rightSplitPanel = new VerticalSplitPanel();
    //  VerticalSplitPanel leftSplitPanel = new VerticalSplitPanel();

    splitPanel.addComponent(leftLayout);
    splitPanel.addComponent(rightSplitPanel);

    VerticalLayout rightTopLayout = new VerticalLayout();
    // rightTopLayout.addComponent(rightTopForm);
    rightTopTabsheet.setSizeFull();
    rightTopLayout.addComponent(rightTopTabsheet);
    rightTopTabsheet.addTab(rightTopForm, "Study Details");
    rightTopTabsheet.addTab(rightTopAnnotationForm, "Annotate");
    rightTopLayout.setSizeFull();

    rightSplitPanel.addComponent(rightTopLayout);

    HorizontalSplitPanel rightBottomLayout = new HorizontalSplitPanel();
    // HorizontalLayout rightBottomLayout = new HorizontalLayout();
    VerticalLayout rightBottomLeftLayout = new VerticalLayout();
    VerticalLayout rightBottomRightLayout = new VerticalLayout();
    rightBottomLayout.addComponent(rightBottomLeftLayout);
    rightBottomLayout.addComponent(rightBottomRightLayout);
    //  rightBottomLayout.setExpandRatio(rightBottomLeftLayout, 1);
    //  rightBottomLayout.setExpandRatio(rightBottomRightLayout, 3);
    rightBottomLayout.setSplitPosition(30f, Unit.PERCENTAGE);

    rightBottomLayout.setSizeFull();
    rightBottomTabsheet.setSizeFull();

    rightSplitPanel.addComponent(rightBottomLayout);

    splitPanel.setSplitPosition(50f, Unit.PERCENTAGE);
    //   rightSplitPanel.setWidth("20%");

    /*
     //make form asking parameters and add it to leftLaayout
     VerticalLayout formLayout = new VerticalLayout();
     // TextField studyName = new TextField("RNAseq Study Name");
     formLayout.addComponent(studyName);
     List replist = new ArrayList();
     ComboBox numReplicates = new ComboBox("Replicates", replist);
     formLayout.addComponent(numReplicates);
     leftLayout.addComponent(formLayout);
     */
    HorizontalLayout leftTopLayout = new HorizontalLayout();
    leftLayout.addComponent(leftTopLayout);
    leftTopLayout.addComponent(searchField);
    leftTopLayout.addComponent(searchButton);
    leftTopLayout.setWidth("100%");
    searchField.setWidth("100%");

    leftTopLayout.setExpandRatio(searchField, 1);
    leftLayout.addComponent(bioprojectSummaryTable);
    // leftLayout.setExpandRatio(searchField, 0);
    leftLayout.setExpandRatio(bioprojectSummaryTable, 1);
    bioprojectSummaryTable.setSizeFull();
    /* Set the contents in the left of the split panel to use all the space */
    leftLayout.setSizeFull();

    /*        VerticalLayout resultLayout = new VerticalLayout();
     rightLayout.addComponent(resultLayout);
     VerticalLayout chartLayout = new VerticalLayout();
     rightLayout.addComponent(chartLayout);
            
     chartLayout.setVisible(false);
     */
    rightBottomLeftLayout.addComponent(tree);

    rightBottomRightLayout.addComponent(rightBottomTabsheet);
    rightBottomTabsheet.addTab(myform, "Selected Biosample");
    myform.setSizeFull();
    VerticalLayout rbTabBiosampleSummaryLayout = new VerticalLayout(); // Right bottom Biosample Summary
    rightBottomTabsheet.addTab(rbTabBiosampleSummaryLayout, "All Biosamples");
    rbTabBiosampleSummaryLayout.addComponent(biosampleSummaryTable);
    rbTabBiosampleSummaryLayout.setSizeFull();

    initDataAndSubcomponent();
    rightTopLayout.setSizeFull();
    rightBottomRightLayout.setSizeFull();

}

From source file:edu.cornell.qatarmed.planrnaseq.AnnotateView.java

public void initLayout() {

    /* Root of the user interface component tree is set */
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
    addComponent(splitPanel);/*www .j  a v a2 s.  co  m*/
    //    panel = new Panel();
    //  panel.setContent(splitPanel);
    splitPanel.setSizeFull();
    //setCompositionRoot(splitPanel);

    //   panel.setContent(splitPanel);

    /* Build the component tree */
    VerticalLayout leftLayout = new VerticalLayout();
    VerticalSplitPanel rightSplitPanel = new VerticalSplitPanel();
    //  VerticalSplitPanel leftSplitPanel = new VerticalSplitPanel();

    splitPanel.addComponent(leftLayout);
    splitPanel.addComponent(rightSplitPanel);

    VerticalLayout rightTopLayout = new VerticalLayout();
    // rightTopLayout.addComponent(rightTopForm);
    rightTopTabsheet.setSizeFull();
    rightTopLayout.addComponent(rightTopTabsheet);
    rightTopTabsheet.addTab(rightTopForm, "Study Details");
    rightTopTabsheet.addTab(rightTopAnnotationForm, "Annotate");
    rightTopLayout.setSizeFull();

    rightSplitPanel.addComponent(rightTopLayout);

    HorizontalSplitPanel rightBottomLayout = new HorizontalSplitPanel();
    // HorizontalLayout rightBottomLayout = new HorizontalLayout();
    VerticalLayout rightBottomLeftLayout = new VerticalLayout();
    VerticalLayout rightBottomRightLayout = new VerticalLayout();
    rightBottomLayout.addComponent(rightBottomLeftLayout);
    rightBottomLayout.addComponent(rightBottomRightLayout);
    //  rightBottomLayout.setExpandRatio(rightBottomLeftLayout, 1);
    //  rightBottomLayout.setExpandRatio(rightBottomRightLayout, 3);
    rightBottomLayout.setSplitPosition(30f, Unit.PERCENTAGE);

    rightBottomLayout.setSizeFull();
    rightBottomTabsheet.setSizeFull();

    rightSplitPanel.addComponent(rightBottomLayout);

    splitPanel.setSplitPosition(50f, Unit.PERCENTAGE);
    //   rightSplitPanel.setWidth("20%");

    /*
     //make form asking parameters and add it to leftLaayout
     VerticalLayout formLayout = new VerticalLayout();
     // TextField studyName = new TextField("RNAseq Study Name");
     formLayout.addComponent(studyName);
     List replist = new ArrayList();
     ComboBox numReplicates = new ComboBox("Replicates", replist);
     formLayout.addComponent(numReplicates);
     leftLayout.addComponent(formLayout);
     */
    HorizontalLayout leftTopLayout = new HorizontalLayout();
    leftLayout.addComponent(leftTopLayout);
    leftTopLayout.addComponent(searchField);
    leftTopLayout.addComponent(searchButton);
    leftTopLayout.setWidth("100%");
    searchField.setWidth("100%");

    leftTopLayout.setExpandRatio(searchField, 1);
    leftLayout.addComponent(bioprojectSummaryTable);
    // leftLayout.setExpandRatio(searchField, 0);
    leftLayout.setExpandRatio(bioprojectSummaryTable, 1);
    bioprojectSummaryTable.setSizeFull();
    /* Set the contents in the left of the split panel to use all the space */
    leftLayout.setSizeFull();

    /*        VerticalLayout resultLayout = new VerticalLayout();
     rightLayout.addComponent(resultLayout);
     VerticalLayout chartLayout = new VerticalLayout();
     rightLayout.addComponent(chartLayout);
            
     chartLayout.setVisible(false);
     */
    rightBottomLeftLayout.addComponent(tree);

    rightBottomRightLayout.addComponent(rightBottomTabsheet);
    rightBottomTabsheet.addTab(myform, "Selected Biosample");
    myform.setSizeFull();
    VerticalLayout rbTabBiosampleSummaryLayout = new VerticalLayout(); // Right bottom Biosample Summary
    rightBottomTabsheet.addTab(rbTabBiosampleSummaryLayout, "All Biosamples");
    rbTabBiosampleSummaryLayout.addComponent(biosampleSummaryTable);
    rbTabBiosampleSummaryLayout.setSizeFull();

    initDataAndSubcomponent();
    rightTopLayout.setSizeFull();
    rightBottomRightLayout.setSizeFull();

}

From source file:edu.cornell.qatarmed.planrnaseq.BrowseAndAnnotate.java

public void initLayout() {

    /* Root of the user interface component tree is set */
    VerticalLayout mainLayout = new VerticalLayout();
    Label titleLabel = new Label("<span style=\"color:rgb(255,255,255)\">MetaRNA-Seq: An interactive "
            + "tool to browse and annotate RNA-Seq meta-data</span>", ContentMode.HTML);
    titleLabel.addStyleName("maintitle");
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();

    mainLayout.addComponent(titleLabel);
    mainLayout.addComponent(splitPanel);

    setContent(mainLayout);/*from  w ww.  j a va 2 s.  c  o m*/
    splitPanel.setSizeFull();
    mainLayout.setSizeFull();
    mainLayout.setExpandRatio(splitPanel, 1);

    /* Build the component tree */
    //  VerticalLayout leftLayout = new VerticalLayout(); // moved this to class level as it is been accessed by other function
    VerticalSplitPanel rightSplitPanel = new VerticalSplitPanel();
    //  VerticalSplitPanel leftSplitPanel = new VerticalSplitPanel();

    splitPanel.addComponent(leftLayout);
    splitPanel.addComponent(rightSplitPanel);

    VerticalLayout rightTopLayout = new VerticalLayout();
    // rightTopLayout.addComponent(rightTopForm);
    rightTopTabsheet.setSizeFull();
    rightTopLayout.addComponent(rightTopTabsheet);
    rightTopTabsheet.addTab(startHelpLayout, "Start Help");
    StartHelp sh = new StartHelp();
    startHelpLayout.addComponent(sh);
    rightTopTabsheet.addTab(rightTopForm, "Study Details");
    rightTopTabsheet.addTab(rightTopAnnotationForm, "Annotate");
    rightTopLayout.setSizeFull();

    rightSplitPanel.addComponent(rightTopLayout);

    HorizontalSplitPanel rightBottomLayout = new HorizontalSplitPanel();
    // HorizontalLayout rightBottomLayout = new HorizontalLayout();
    VerticalLayout rightBottomLeftLayout = new VerticalLayout();
    VerticalLayout rightBottomRightLayout = new VerticalLayout();
    rightBottomLayout.addComponent(rightBottomLeftLayout);
    rightBottomLayout.addComponent(rightBottomRightLayout);
    //  rightBottomLayout.setExpandRatio(rightBottomLeftLayout, 1);
    //  rightBottomLayout.setExpandRatio(rightBottomRightLayout, 3);
    rightBottomLayout.setSplitPosition(30f, Unit.PERCENTAGE);

    rightBottomLayout.setSizeFull();
    rightBottomTabsheet.setSizeFull();

    rightSplitPanel.addComponent(rightBottomLayout);

    splitPanel.setSplitPosition(50f, Unit.PERCENTAGE);

    //HorizontalLayout leftTopLayout = new HorizontalLayout(); // moved this to class level as it is been accessed by other function
    leftLayout.addComponent(leftTopLayout);
    leftTopLayout.addComponent(searchField);
    leftTopLayout.addComponent(searchButton);
    leftTopLayout.addComponent(slowSearchButton);
    leftTopLayout.addComponent(guidedSearchButton);
    leftTopLayout.setWidth("100%");
    searchField.setWidth("100%");

    leftTopLayout.setExpandRatio(searchField, 1);
    leftLayout.addComponent(bioprojectSummaryTable);
    // leftLayout.setExpandRatio(searchField, 0);
    leftLayout.setExpandRatio(bioprojectSummaryTable, 1);
    bioprojectSummaryTable.setSizeFull();
    /* Set the contents in the left of the split panel to use all the space */
    leftLayout.setSizeFull();

    rightBottomLeftLayout.addComponent(tree);

    rightBottomRightLayout.addComponent(rightBottomTabsheet);
    rightBottomTabsheet.addTab(myform, "Details of selected Item");
    myform.setSizeFull();
    VerticalLayout rbTabBiosampleSummaryLayout = new VerticalLayout(); // Right bottom Biosample Summary
    //  rightBottomTabsheet.addTab(rbTabBiosampleSummaryLayout, "All Biosamples");
    rbTabBiosampleSummaryLayout.addComponent(biosampleSummaryTable);
    rbTabBiosampleSummaryLayout.setSizeFull();

    initDataAndSubcomponent();
    rightTopLayout.setSizeFull();
    rightBottomRightLayout.setSizeFull();

}

From source file:edu.cornell.qatarmed.planrnaseq.PlanRNAseq.java

private void initLayout() {

    /* Root of the user interface component tree is set */
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
    setContent(splitPanel);/*from w w w .j a va2  s . c  om*/

    /* Build the component tree */
    VerticalLayout leftLayout = new VerticalLayout();
    VerticalLayout rightLayout = new VerticalLayout();

    splitPanel.addComponent(leftLayout);
    splitPanel.addComponent(rightLayout);

    //make form asking parameters and add it to leftLaayout
    VerticalLayout formLayout = new VerticalLayout();
    TextField studyName = new TextField("Name of RNAseq Study");
    formLayout.addComponent(studyName);
    List replist = new ArrayList();
    ComboBox numReplicates = new ComboBox("Replicates", replist);
    formLayout.addComponent(numReplicates);
    leftLayout.addComponent(formLayout);
    /* Set the contents in the left of the split panel to use all the space */
    leftLayout.setSizeFull();

    VerticalLayout resultLayout = new VerticalLayout();
    rightLayout.addComponent(resultLayout);
    VerticalLayout chartLayout = new VerticalLayout();
    rightLayout.addComponent(chartLayout);

    chartLayout.setVisible(false);

}

From source file:fi.hip.sicx.vaadin.GUIComponent.java

License:Open Source License

@AutoGenerated
private HorizontalSplitPanel buildHorizontalSplitPanel() {
    // common part: create layout
    HorizontalSplitPanel = new HorizontalSplitPanel();
    HorizontalSplitPanel.setImmediate(false);
    HorizontalSplitPanel.setWidth("100.0%");
    HorizontalSplitPanel.setHeight("100.0%");
    HorizontalSplitPanel.setMargin(false);

    // verticalL/*from w  w w .j  a va  2 s . c  o m*/
    verticalL = buildVerticalL();
    HorizontalSplitPanel.addComponent(verticalL);

    // verticalU
    verticalU = buildVerticalU();
    HorizontalSplitPanel.addComponent(verticalU);

    return HorizontalSplitPanel;
}