Example usage for com.vaadin.ui VerticalLayout VerticalLayout

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

Introduction

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

Prototype

public VerticalLayout() 

Source Link

Document

Constructs an empty VerticalLayout.

Usage

From source file:com.gnts.pem.txn.sbi.SBIConstructionBuilding.java

String showSubWindow() {
    tfCaption.setValue("");
    VerticalLayout subwindow = new VerticalLayout();

    tfCaption.setWidth("200px");
    mywindow.center();/*from  w w  w  .j ava 2 s . c o m*/

    mywindow.setModal(true);
    tfCaption.focus();
    mywindow.setHeight("120");
    mywindow.setWidth("220");

    subwindow.addComponent(tfCaption);
    subwindow.addComponent(myButton);
    subwindow.setComponentAlignment(myButton, Alignment.MIDDLE_CENTER);

    subwindow.setMargin(true);
    subwindow.setSpacing(true);

    myButton.setStyleName("default");

    mywindow.setContent(subwindow);

    mywindow.setResizable(false);
    //mywindow.setResizable(false);
    //      subwindow.setWidth("200");
    //      subwindow.setHeight("400");

    UI.getCurrent().addWindow(mywindow);
    return null;
}