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.zklogtool.web.components.MainLayout.java

License:Apache License

@AutoGenerated
private HorizontalLayout buildHorizontalLayout_4() {
    // common part: create layout
    horizontalLayout_4 = new HorizontalLayout();
    horizontalLayout_4.setImmediate(false);
    horizontalLayout_4.setWidth("100.0%");
    horizontalLayout_4.setHeight("-1px");
    horizontalLayout_4.setMargin(false);

    // versionLabel
    versionLabel = new Label();
    versionLabel.setImmediate(false);//www. jav  a2s.  c o  m
    versionLabel.setWidth("-1px");
    versionLabel.setHeight("-1px");
    versionLabel.setValue("zklogtool web application 0.1");
    horizontalLayout_4.addComponent(versionLabel);
    horizontalLayout_4.setComponentAlignment(versionLabel, new Alignment(34));

    return horizontalLayout_4;
}

From source file:com.zklogtool.web.components.TransactionLogView.java

License:Apache License

@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
    // common part: create layout
    verticalLayout_1 = new VerticalLayout();
    verticalLayout_1.setImmediate(false);
    verticalLayout_1.setWidth("100.0%");
    verticalLayout_1.setHeight("100.0%");
    verticalLayout_1.setMargin(true);//from w  ww  . j  a  va  2  s . c o m
    verticalLayout_1.setSpacing(true);

    // reconstructDataTreeButton
    reconstructDataTreeButton = new Button();
    reconstructDataTreeButton.setCaption("Reconstruct Data Tree");
    reconstructDataTreeButton.setImmediate(true);
    reconstructDataTreeButton.setWidth("-1px");
    reconstructDataTreeButton.setHeight("-1px");
    verticalLayout_1.addComponent(reconstructDataTreeButton);
    verticalLayout_1.setComponentAlignment(reconstructDataTreeButton, new Alignment(6));

    // descriptionLabel
    descriptionLabel = new Label();
    descriptionLabel.setImmediate(false);
    descriptionLabel.setWidth("-1px");
    descriptionLabel.setHeight("-1px");
    descriptionLabel.setValue("Select Transaction");
    verticalLayout_1.addComponent(descriptionLabel);
    verticalLayout_1.setExpandRatio(descriptionLabel, 1.0f);

    return verticalLayout_1;
}

From source file:de.flapdoodle.mongoui.ui.VaadinUIComp.java

License:Apache License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();
    mainLayout.setImmediate(false);/* w ww .jav  a2 s. c  o m*/
    mainLayout.setWidth("-1px");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(false);

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

    // hLayout
    hLayout = buildHLayout();
    mainLayout.addComponent(hLayout);

    // submit
    submit = new Button();
    submit.setCaption("Connect");
    submit.setImmediate(true);
    submit.setWidth("-1px");
    submit.setHeight("-1px");
    mainLayout.addComponent(submit);
    mainLayout.setComponentAlignment(submit, new Alignment(34));

    return mainLayout;
}

From source file:de.flapdoodle.mongoui.ui.VaadinUIComp.java

License:Apache License

@AutoGenerated
private HorizontalLayout buildHLayout() {
    // common part: create layout
    hLayout = new HorizontalLayout();
    hLayout.setImmediate(false);//from  ww w. j av  a 2s .c om
    hLayout.setWidth("-1px");
    hLayout.setHeight("-1px");
    hLayout.setMargin(false);

    // nameLabel
    nameLabel = new Label();
    nameLabel.setImmediate(false);
    nameLabel.setWidth("-1px");
    nameLabel.setHeight("-1px");
    nameLabel.setValue("Hostname");
    hLayout.addComponent(nameLabel);
    hLayout.setComponentAlignment(nameLabel, new Alignment(33));

    // name
    name = new TextField();
    name.setImmediate(false);
    name.setWidth("-1px");
    name.setHeight("-1px");
    name.setRequired(true);
    name.setSecret(false);
    hLayout.addComponent(name);
    hLayout.setComponentAlignment(name, new Alignment(33));

    // portLabel
    portLabel = new Label();
    portLabel.setImmediate(false);
    portLabel.setWidth("-1px");
    portLabel.setHeight("-1px");
    portLabel.setValue("Port");
    hLayout.addComponent(portLabel);
    hLayout.setComponentAlignment(portLabel, new Alignment(33));

    // port
    port = new TextField();
    port.setImmediate(false);
    port.setWidth("-1px");
    port.setHeight("-1px");
    port.setRequired(true);
    port.setMaxLength(6);
    port.setNullRepresentation("-1");
    port.setSecret(false);
    hLayout.addComponent(port);
    hLayout.setComponentAlignment(port, new Alignment(33));

    return hLayout;
}

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

License:Open Source License

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

    // buttonsL
    buttonsL = buildButtonsL();
    verticalL.addComponent(buttonsL);
    verticalL.setComponentAlignment(buttonsL, new Alignment(33));

    // addressL
    addressL = new TextField();
    addressL.setImmediate(false);
    addressL.setWidth("100.0%");
    addressL.setHeight("23px");
    addressL.setInputPrompt("C:/upload");
    //      addressL.setSecret(false);
    verticalL.addComponent(addressL);

    // localt
    localt = new Table();
    localt.setImmediate(false);
    localt.setWidth("100.0%");
    localt.setHeight("100.0%");
    verticalL.addComponent(localt);
    verticalL.setExpandRatio(localt, 1.0f);

    return verticalL;
}

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

License:Open Source License

@AutoGenerated
private HorizontalLayout buildButtonsL() {
    // common part: create layout
    buttonsL = new HorizontalLayout();
    buttonsL.setImmediate(false);/*from   w w w  .  java  2s  .  co m*/
    buttonsL.setWidth("100.0%");
    buttonsL.setHeight("30px");
    buttonsL.setMargin(false);

    // buttonsonlyL
    buttonsonlyL = buildButtonsonlyL();
    buttonsL.addComponent(buttonsonlyL);
    buttonsL.setComponentAlignment(buttonsonlyL, new Alignment(33));

    // labelL
    labelL = new Label();
    labelL.setImmediate(false);
    labelL.setWidth("-1px");
    labelL.setHeight("-1px");
    labelL.setValue("Local folder");
    buttonsL.addComponent(labelL);

    return buttonsL;
}

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

License:Open Source License

@AutoGenerated
private VerticalLayout buildVerticalU() {
    // common part: create layout
    verticalU = new VerticalLayout();
    verticalU.setImmediate(false);//from w ww  .  ja  v  a2 s  .  c o  m
    verticalU.setWidth("100.0%");
    verticalU.setHeight("100.0%");
    verticalU.setMargin(false);

    // buttonsU
    buttonsU = buildButtonsU();
    verticalU.addComponent(buttonsU);
    verticalU.setComponentAlignment(buttonsU, new Alignment(33));

    // addressU
    addressU = new TextField();
    addressU.setImmediate(false);
    addressU.setWidth("100.0%");
    addressU.setHeight("23px");
    addressU.setInputPrompt("/private");
    //      addressU.setSecret(false);
    verticalU.addComponent(addressU);

    // servert
    servert = new Table();
    servert.setImmediate(false);
    servert.setWidth("100.0%");
    servert.setHeight("100.0%");
    verticalU.addComponent(servert);
    verticalU.setExpandRatio(servert, 1.0f);

    return verticalU;
}

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

License:Open Source License

@AutoGenerated
private HorizontalLayout buildButtonsU() {
    // common part: create layout
    buttonsU = new HorizontalLayout();
    buttonsU.setImmediate(false);/* w ww .j  a va2 s  . c  o  m*/
    buttonsU.setWidth("100.0%");
    buttonsU.setHeight("30px");
    buttonsU.setMargin(false);

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    buttonsU.addComponent(horizontalLayout_1);
    buttonsU.setComponentAlignment(horizontalLayout_1, new Alignment(33));

    // labelU
    labelU = new Label();
    labelU.setImmediate(false);
    labelU.setWidth("-1px");
    labelU.setHeight("-1px");
    labelU.setValue("SICX remote folder");
    buttonsU.addComponent(labelU);

    return buttonsU;
}

From source file:jcaster_vaadin.Gui2.java

License:Open Source License

@AutoGenerated
private VerticalLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new VerticalLayout();

    // top-level component properties
    setWidth("400px");
    setHeight("340px");

    // menuBar_1/*ww  w .j av  a  2s.  co  m*/
    menuBar_1 = new MenuBar();
    menuBar_1.setWidth("100.0%");
    menuBar_1.setHeight("-1px");
    menuBar_1.setImmediate(false);
    mainLayout.addComponent(menuBar_1);

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    mainLayout.addComponent(horizontalLayout_1);

    // tabSheet_1
    tabSheet_1 = buildTabSheet_1();
    mainLayout.addComponent(tabSheet_1);
    mainLayout.setExpandRatio(tabSheet_1, 1.0f);
    mainLayout.setComponentAlignment(tabSheet_1, new Alignment(48));

    return mainLayout;
}

From source file:jcaster_vaadin.Gui2.java

License:Open Source License

@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setWidth("100.0%");
    horizontalLayout_1.setHeight("60px");
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);

    // rcrdBtn/*from   w  ww .  j  a v a  2s  .  co  m*/
    rcrdBtn = new NativeButton();
    rcrdBtn.setWidth("100.0%");
    rcrdBtn.setHeight("40px");
    rcrdBtn.setCaption("Record");
    rcrdBtn.setImmediate(true);
    horizontalLayout_1.addComponent(rcrdBtn);
    horizontalLayout_1.setExpandRatio(rcrdBtn, 1.0f);
    horizontalLayout_1.setComponentAlignment(rcrdBtn, new Alignment(33));

    rcrdBtn.addListener(new Button.ClickListener() {
        private static final long serialVersionUID = 8186248537694916910L;

        public void buttonClick(Button.ClickEvent event) {
            record();
        }
    });

    // psBtn
    psBtn = new NativeButton();
    psBtn.setWidth("100.0%");
    psBtn.setHeight("40px");
    psBtn.setCaption("Pause");
    psBtn.setEnabled(false); //set disabled at start
    psBtn.setImmediate(true);
    horizontalLayout_1.addComponent(psBtn);
    horizontalLayout_1.setExpandRatio(psBtn, 1.0f);
    horizontalLayout_1.setComponentAlignment(psBtn, new Alignment(48));

    psBtn.addListener(new Button.ClickListener() {

        private static final long serialVersionUID = 675799252337301498L;

        public void buttonClick(Button.ClickEvent event) {
            pause();
        }
    });

    // stpBtn
    stpBtn = new NativeButton();
    stpBtn.setWidth("100.0%");
    stpBtn.setHeight("40px");
    stpBtn.setCaption("Stop");
    stpBtn.setEnabled(false); //set disabled at start
    stpBtn.setImmediate(true);
    horizontalLayout_1.addComponent(stpBtn);
    horizontalLayout_1.setExpandRatio(stpBtn, 1.0f);
    horizontalLayout_1.setComponentAlignment(stpBtn, new Alignment(34));

    stpBtn.addListener(new Button.ClickListener() {

        private static final long serialVersionUID = -3317641878189301674L;

        public void buttonClick(Button.ClickEvent event) {
            stop();
        }
    });

    return horizontalLayout_1;
}