Example usage for com.vaadin.ui Alignment Alignment

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

Introduction

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

Prototype

public Alignment(int bitMask) 

Source Link

Usage

From source file:com.example.mmowgli_2_0.RootCards.java

@AutoGenerated
private VerticalLayout buildVerticalLayout_idea1() {
    // common part: create layout
    verticalLayout_idea1 = new VerticalLayout();
    verticalLayout_idea1.setImmediate(false);
    verticalLayout_idea1.setWidth("-1px");
    verticalLayout_idea1.setHeight("-1px");
    verticalLayout_idea1.setMargin(false);

    // label_idea1
    label_idea1 = new Label();
    label_idea1.setImmediate(false);/*from ww w . java  2s .  c  om*/
    label_idea1.setWidth("-1px");
    label_idea1.setHeight("-1px");
    label_idea1.setValue("Idea 1");
    verticalLayout_idea1.addComponent(label_idea1);
    verticalLayout_idea1.setComponentAlignment(label_idea1, new Alignment(48));

    // root_button1
    root_button1 = new NativeButton();
    root_button1.setCaption(
            "Project Gutenbergs The Time Machine by H. G. Herbert George Wells  This eBook is for the use of anyone anywhere at no cost and with almost no ");
    root_button1.setImmediate(true);
    root_button1.setWidth("399px");
    root_button1.setHeight("134px");
    verticalLayout_idea1.addComponent(root_button1);

    return verticalLayout_idea1;
}

From source file:com.example.mmowgli_2_0.RootCards.java

@AutoGenerated
private VerticalLayout buildVerticalLayout_idea2() {
    // common part: create layout
    verticalLayout_idea2 = new VerticalLayout();
    verticalLayout_idea2.setImmediate(false);
    verticalLayout_idea2.setWidth("-1px");
    verticalLayout_idea2.setHeight("-1px");
    verticalLayout_idea2.setMargin(false);

    // label_idea2
    label_idea2 = new Label();
    label_idea2.setImmediate(false);//from ww  w  .  j ava 2 s.  c o  m
    label_idea2.setWidth("-1px");
    label_idea2.setHeight("-1px");
    label_idea2.setValue("Idea 2");
    verticalLayout_idea2.addComponent(label_idea2);
    verticalLayout_idea2.setComponentAlignment(label_idea2, new Alignment(20));

    // root_button2
    root_button2 = new NativeButton();
    root_button2.setCaption(
            "restrictions whatsoever.  You may copy it give it away or reuse it under the terms of the Project Gutenberg License included with this eBook or on");
    root_button2.setImmediate(true);
    root_button2.setWidth("399px");
    root_button2.setHeight("134px");
    verticalLayout_idea2.addComponent(root_button2);

    return verticalLayout_idea2;
}

From source file:com.fatminds.vaadin_cmis_integration.demo.DemoPage.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);/*from w ww .ja v a  2s.c  o  m*/
    mainLayout.setWidth("900px");
    mainLayout.setHeight("800px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);

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

    // gridLayout_2
    gridLayout_2 = buildGridLayout_2();
    mainLayout.addComponent(gridLayout_2);
    mainLayout.setComponentAlignment(gridLayout_2, new Alignment(20));

    // horizontalLayout_3
    horizontalLayout_3 = buildHorizontalLayout_3();
    mainLayout.addComponent(horizontalLayout_3);
    mainLayout.setComponentAlignment(horizontalLayout_3, new Alignment(20));

    // gridLayout_1
    gridLayout_1 = buildGridLayout_1();
    mainLayout.addComponent(gridLayout_1);
    mainLayout.setExpandRatio(gridLayout_1, 1.0f);
    mainLayout.setComponentAlignment(gridLayout_1, new Alignment(20));

    return mainLayout;
}

From source file:com.fatminds.vaadin_cmis_integration.demo.DemoPage.java

License:Apache License

@AutoGenerated
private GridLayout buildGridLayout_2() {
    // common part: create layout
    gridLayout_2 = new GridLayout();
    gridLayout_2.setImmediate(false);/*from  w w w  .j  a  v  a2 s.  c o m*/
    gridLayout_2.setWidth("90.0%");
    gridLayout_2.setHeight("50px");
    gridLayout_2.setMargin(false);
    gridLayout_2.setColumns(2);

    // verticalLayout_2
    verticalLayout_2 = buildVerticalLayout_2();
    gridLayout_2.addComponent(verticalLayout_2, 0, 0);
    gridLayout_2.setComponentAlignment(verticalLayout_2, new Alignment(24));

    return gridLayout_2;
}

From source file:com.fatminds.vaadin_cmis_integration.demo.DemoPage.java

License:Apache License

@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
    // common part: create layout
    verticalLayout_2 = new VerticalLayout();
    verticalLayout_2.setImmediate(false);
    verticalLayout_2.setWidth("-1px");
    verticalLayout_2.setHeight("-1px");
    verticalLayout_2.setMargin(false);//from www .ja  v  a2s .  c  o m

    // label_1
    label_1 = new Label();
    label_1.setImmediate(false);
    label_1.setWidth("-1px");
    label_1.setHeight("-1px");
    label_1.setValue("Upload a text or html file");
    verticalLayout_2.addComponent(label_1);
    verticalLayout_2.setComponentAlignment(label_1, new Alignment(33));

    // upload_1
    upload_1 = new Upload();
    upload_1.setImmediate(false);
    upload_1.setWidth("100.0%");
    upload_1.setHeight("100.0%");
    verticalLayout_2.addComponent(upload_1);
    verticalLayout_2.setComponentAlignment(upload_1, new Alignment(33));

    return verticalLayout_2;
}

From source file:com.fatminds.vaadin_cmis_integration.demo.DemoPage.java

License:Apache License

@AutoGenerated
private HorizontalLayout buildHorizontalLayout_3() {
    // common part: create layout
    horizontalLayout_3 = new HorizontalLayout();
    horizontalLayout_3.setImmediate(false);
    horizontalLayout_3.setWidth("100.0%");
    horizontalLayout_3.setHeight("250px");
    horizontalLayout_3.setMargin(false);

    // cmisList_1
    cmisList_1 = new CmisList();
    cmisList_1.setImmediate(false);/*from   www .  j  a  v a 2  s  .  co  m*/
    cmisList_1.setWidth("700px");
    cmisList_1.setHeight("250px");
    horizontalLayout_3.addComponent(cmisList_1);

    // btnRefresh
    btnRefresh = new Button();
    btnRefresh.setCaption("Refresh container");
    btnRefresh.setImmediate(true);
    btnRefresh.setWidth("150px");
    btnRefresh.setHeight("-1px");
    horizontalLayout_3.addComponent(btnRefresh);
    horizontalLayout_3.setComponentAlignment(btnRefresh, new Alignment(6));

    return horizontalLayout_3;
}

From source file:com.fatminds.vaadin_cmis_integration.demo.DemoPage.java

License:Apache License

@AutoGenerated
private GridLayout buildGridLayout_1() {
    // common part: create layout
    gridLayout_1 = new GridLayout();
    gridLayout_1.setImmediate(false);//from   w ww  .j  a v  a2 s  . com
    gridLayout_1.setWidth("100.0%");
    gridLayout_1.setHeight("500px");
    gridLayout_1.setMargin(false);
    gridLayout_1.setSpacing(true);
    gridLayout_1.setColumns(2);
    gridLayout_1.setRows(3);

    // verticalLayout_3
    verticalLayout_3 = buildVerticalLayout_3();
    gridLayout_1.addComponent(verticalLayout_3, 0, 0);

    // verticalLayout_4
    verticalLayout_4 = buildVerticalLayout_4();
    gridLayout_1.addComponent(verticalLayout_4, 1, 0);
    gridLayout_1.setComponentAlignment(verticalLayout_4, new Alignment(6));

    return gridLayout_1;
}

From source file:com.fatminds.vaadin_cmis_integration.demo.DemoTemplateForm.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);/*ww  w  . j  a  v a2  s.  c om*/
    mainLayout.setWidth("350px");
    mainLayout.setHeight("110px");
    mainLayout.setMargin(false);
    mainLayout.setSpacing(true);

    // top-level component properties
    setWidth("350px");
    setHeight("110px");

    // gridLayout_1
    gridLayout_1 = buildGridLayout_1();
    mainLayout.addComponent(gridLayout_1);
    mainLayout.setComponentAlignment(gridLayout_1, new Alignment(20));

    return mainLayout;
}

From source file:com.parship.roperty.ui.LoginUI.java

License:Apache License

@AutoGenerated
private HorizontalLayout buildScreenLayout() {
    // common part: create layout
    screenLayout = new HorizontalLayout();
    screenLayout.setImmediate(false);/*from w  ww.  j a  v a 2 s.  c o m*/
    screenLayout.setWidth("100.0%");
    screenLayout.setHeight("100.0%");
    screenLayout.setMargin(false);

    // centerLayout
    centerLayout = buildCenterLayout();
    screenLayout.addComponent(centerLayout);
    screenLayout.setComponentAlignment(centerLayout, new Alignment(48));

    return screenLayout;
}

From source file:com.parship.roperty.ui.LoginUI.java

License:Apache License

@AutoGenerated
private VerticalLayout buildCenterLayout() {
    // common part: create layout
    centerLayout = new VerticalLayout();
    centerLayout.setImmediate(false);/*from w ww.  j  av  a 2  s.co m*/
    centerLayout.setWidth("-1px");
    centerLayout.setHeight("250px");
    centerLayout.setMargin(false);

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    centerLayout.addComponent(horizontalLayout_1);
    centerLayout.setComponentAlignment(horizontalLayout_1, new Alignment(48));

    // loginLayout
    loginLayout = buildLoginLayout();
    centerLayout.addComponent(loginLayout);

    return centerLayout;
}