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.anphat.list.ui.DialogAddMapStaffCustomer.java

private void buildLeftLayout() {
    // common part: create layout
    leftLayout = new VerticalLayout();
    leftLayout.setImmediate(true);/*from   w  ww. j  a  v a2 s . c om*/
    leftLayout.setWidth("100.0%");
    leftLayout.setHeight("-1px");
    leftLayout.setMargin(true);
    leftLayout.setSpacing(true);

    // tblLeftLayout
    panelStaffAdd = new CommonTableFilterPanel();
    leftLayout.addComponent(panelStaffAdd);
}

From source file:com.anphat.list.ui.DialogAddMapStaffCustomer.java

private void buildCenterLayout() {
    // common part: create layout
    centerLayout = new VerticalLayout();
    centerLayout.setImmediate(true);/*w  ww .  j  av  a  2s. com*/
    centerLayout.setWidth("30px");
    centerLayout.setHeight("-1px");
    centerLayout.setMargin(false);

    // btnAdd
    btnAdd = new Button();
    btnAdd.setIcon(new ThemeResource(Constants.ICON.FORWARD));
    btnAdd.setImmediate(true);
    btnAdd.setWidth("-1px");
    btnAdd.setHeight("-1px");
    centerLayout.addComponent(btnAdd);
    centerLayout.setComponentAlignment(btnAdd, new Alignment(48));

}

From source file:com.anphat.list.ui.DialogAddMapStaffCustomer.java

private void buildRightLayout() {
    // common part: create layout
    rightLayout = new VerticalLayout();
    rightLayout.setImmediate(true);//from   ww  w. j a  v  a2  s.c  o  m
    rightLayout.setWidth("100.0%");
    rightLayout.setHeight("-1px");
    rightLayout.setMargin(true);
    rightLayout.setSpacing(true);
    //Thong tin chung ve khach hang
    //        buildInfoLayout(isCustInfo);
    //        rightLayout.addComponent(infoLayout);
    // selectedLayout
    panelStaffOld = new CommonTableFilterPanel();
    rightLayout.addComponent(panelStaffOld);
}

From source file:com.anphat.list.ui.DialogCreateDepartment.java

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(true);//from w ww. j  ava 2 s  .  co  m
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    setModal(true);

    // top-level component properties
    setWidth("800px");
    setHeight("-1px");

    // gridLayoutDepartInfo
    gridLayoutDepartInfo = buildGridLayoutDepartInfo();
    mainLayout.addComponent(gridLayoutDepartInfo);

    // horizontalLayoutButton
    horizontalLayoutButton = buildHorizontalLayoutButton();
    mainLayout.addComponent(horizontalLayoutButton);

    return mainLayout;
}

From source file:com.anphat.list.ui.DialogCreateStaff.java

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);// w ww .j a v  a  2s. c  om
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    setModal(true);
    // top-level component properties
    setWidth("800px");
    setHeight("-1px");

    // gridLayoutDepartInfo
    gridLayoutDepartInfo = buildGridLayoutDepartInfo();
    mainLayout.addComponent(gridLayoutDepartInfo);

    // horizontalLayoutButton
    horizontalLayoutButton = buildHorizontalLayoutButton();
    mainLayout.addComponent(horizontalLayoutButton);

    return mainLayout;
}

From source file:com.anphat.list.ui.MapStaffCustomerDialog.java

private void buildFirstLayout() {
    // common part: create layout
    leftLayout = new VerticalLayout();
    leftLayout.setImmediate(true);//w w w . java  2 s .  c om
    leftLayout.setWidth("100.0%");
    leftLayout.setHeight("-1px");
    leftLayout.setMargin(true);
    leftLayout.setSpacing(true);

    // tblLeftLayout
    panelTblCustomer = new CommonTableFilterPanel();
    panelTblCustomer.getToolbar().setVisible(false);
    leftLayout.addComponent(panelTblCustomer);
}

From source file:com.anphat.list.ui.MapStaffCustomerDialog.java

private void buildCustomerStatusLayout() {
    rightLayout = new VerticalLayout();
    rightLayout.setImmediate(true);//from   w  w w  .  j a  v a  2 s. c om
    rightLayout.setWidth("100.0%");
    rightLayout.setHeight("-1px");
    rightLayout.setMargin(true);
    rightLayout.setSpacing(true);
    panelTblCustomerStatus = new CommonTableFilterPanel();
    panelTblCustomerStatus.getToolbar().setVisible(false);
    rightLayout.addComponent(panelTblCustomerStatus);
}

From source file:com.antonjohansson.lprs.view.ErrorView.java

License:Apache License

private VerticalLayout layout() {
    VerticalLayout layout = new VerticalLayout();
    layout.setCaption("Errors found when starting the application");
    layout.setSpacing(true);//from w  w  w . ja va2 s .  c om
    layout.setWidthUndefined();
    return layout;
}

From source file:com.antonjohansson.lprs.view.ServiceView.java

License:Apache License

private Layout requestTokenLayout() {
    username.setInputPrompt("Username");
    username.setWidth(STANDARD_WIDTH, EM);
    captcha.setSize(NORMAL);/*from w w  w . j  a v a2 s .  c o m*/
    captcha.setTheme(LIGHT);
    captcha.setType(IMAGE);
    requestToken.setCaption("Request token");
    requestToken.setWidth(STANDARD_WIDTH, EM);
    requestToken.setEnabled(false);

    VerticalLayout layout = new VerticalLayout();
    layout.addComponents(username, captcha, requestToken);
    layout.setMargin(true);
    layout.setSpacing(true);
    layout.setVisible(false);
    layout.setWidthUndefined();

    return layout;
}

From source file:com.antonjohansson.lprs.view.ServiceView.java

License:Apache License

private Layout useTokenLayout() {
    token.setInputPrompt("Token");
    token.setWidth(STANDARD_WIDTH, EM);// ww w .j  a  va  2 s . c  o  m
    useToken.setCaption("Next");
    backFromUseToken.setCaption("Back");

    HorizontalLayout buttons = new HorizontalLayout(useToken, backFromUseToken);
    buttons.setSpacing(true);

    VerticalLayout layout = new VerticalLayout();
    layout.addComponents(greeting, token, buttons);
    layout.setMargin(true);
    layout.setSpacing(true);
    layout.setVisible(false);
    layout.setWidthUndefined();

    return layout;
}