Example usage for com.google.gwt.user.client.ui HasVerticalAlignment ALIGN_MIDDLE

List of usage examples for com.google.gwt.user.client.ui HasVerticalAlignment ALIGN_MIDDLE

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui HasVerticalAlignment ALIGN_MIDDLE.

Prototype

VerticalAlignmentConstant ALIGN_MIDDLE

To view the source code for com.google.gwt.user.client.ui HasVerticalAlignment ALIGN_MIDDLE.

Click Source Link

Document

Specifies that the widget's contents should be aligned in the middle.

Usage

From source file:com.google.sampling.experiential.client.ExperimentRow.java

License:Open Source License

private void createCopyButton(HorizontalPanel horizontalPanel, HorizontalPanel horizontalPanel_1) {
    Button copyButton = new Button(myConstants.copy());
    copyButton.setStyleName("paco-ExperimentRow-Button");
    copyButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            showExperimentDetailsAsCopy();
        }//w ww  .  ja va  2 s .  c  om
    });
    horizontalPanel_1.add(copyButton);
    horizontalPanel.setCellVerticalAlignment(copyButton, HasVerticalAlignment.ALIGN_MIDDLE);
    copyButton.setEnabled(!isExperimentPurged());
}

From source file:com.google.sampling.experiential.client.ExperimentRow.java

License:Open Source License

private void createAnonCSVButton(HorizontalPanel horizontalPanel, HorizontalPanel horizontalPanel_1) {
    Button csvAnonButton = new Button(myConstants.anonCsv());
    csvAnonButton.setStyleName("paco-ExperimentRow-Button");
    csvAnonButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            showCSVAnon();//from   www  .jav  a  2 s. com
        }
    });
    horizontalPanel_1.add(csvAnonButton);
    horizontalPanel.setCellVerticalAlignment(csvAnonButton, HasVerticalAlignment.ALIGN_MIDDLE);

    Button anonMappingButton = new Button(myConstants.anonMap());
    anonMappingButton.setStyleName("paco-ExperimentRow-Button");
    anonMappingButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            showAnonMapping();
        }
    });
    horizontalPanel_1.add(anonMappingButton);
    horizontalPanel.setCellVerticalAlignment(csvAnonButton, HasVerticalAlignment.ALIGN_MIDDLE);
}

From source file:com.google.sampling.experiential.client.ExperimentRow.java

License:Open Source License

private void createCSVButton(HorizontalPanel horizontalPanel, HorizontalPanel horizontalPanel_1) {
    Button csvButton = new Button(myConstants.csv());
    csvButton.setStyleName("paco-ExperimentRow-Button");
    csvButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            showCSV();//from  w w  w.  ja  va 2s . c om
        }
    });
    horizontalPanel_1.add(csvButton);
    horizontalPanel.setCellVerticalAlignment(csvButton, HasVerticalAlignment.ALIGN_MIDDLE);
}

From source file:com.google.sampling.experiential.client.ExperimentRow.java

License:Open Source License

private void createStatsButton(HorizontalPanel horizontalPanel, HorizontalPanel horizontalPanel_1) {
    Button statsButton = new Button(myConstants.stats());
    statsButton.setStyleName("paco-ExperimentRow-Button");
    statsButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            showStats();//  w w  w . j av a2s  .c  o  m
        }
    });
    horizontalPanel_1.add(statsButton);
    horizontalPanel.setCellVerticalAlignment(statsButton, HasVerticalAlignment.ALIGN_MIDDLE);
}

From source file:com.google.sampling.experiential.client.ExperimentRow.java

License:Open Source License

private void createChartButton(HorizontalPanel horizontalPanel, HorizontalPanel horizontalPanel_1) {
    Button chartButton = new Button(myConstants.charts());
    chartButton.setStyleName("paco-ExperimentRow-Button");
    chartButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            showCharts();/*from  w  w  w.j a v  a  2s.com*/
        }
    });
    horizontalPanel_1.add(chartButton);
    horizontalPanel.setCellVerticalAlignment(chartButton, HasVerticalAlignment.ALIGN_MIDDLE);
}

From source file:com.google.sampling.experiential.client.ExperimentRow.java

License:Open Source License

private void createViewDataButton(HorizontalPanel horizontalPanel, HorizontalPanel horizontalPanel_1) {
    Button dataButton = new Button(myConstants.viewData());
    dataButton.setStyleName("paco-ExperimentRow-Button");
    dataButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            showData();//from www  . ja va 2 s  . c  o m
        }
    });
    horizontalPanel_1.add(dataButton);
    horizontalPanel.setCellVerticalAlignment(dataButton, HasVerticalAlignment.ALIGN_MIDDLE);
}

From source file:com.google.sampling.experiential.client.ExperimentRow.java

License:Open Source License

private void createRespondButton(HorizontalPanel horizontalPanel, HorizontalPanel horizontalPanel_1) {
    Button enterButton = new Button(myConstants.respond());
    enterButton.setStyleName("paco-ExperimentRow-Button");
    enterButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            showExecutorPanel();//from  www. j  a v a 2  s.com
        }
    });
    horizontalPanel_1.add(enterButton);
    horizontalPanel.setCellVerticalAlignment(enterButton, HasVerticalAlignment.ALIGN_MIDDLE);
    enterButton.setEnabled(!isExperimentPurged());
}

From source file:com.google.sampling.experiential.client.ExtraDataCollectionDeclPanel.java

License:Open Source License

/**
 *//*from  w ww  .ja v  a  2s  .c  o m*/
public ExtraDataCollectionDeclPanel(Integer decl, ExperimentDAO experiment) {
    this.experiment = experiment;
    this.decl = decl;
    myConstants = GWT.create(MyConstants.class);
    horizontalPanel = new HorizontalPanel();
    horizontalPanel.setSpacing(2);
    horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    initWidget(horizontalPanel);
    horizontalPanel.setWidth("258px");

    checkBox = new CheckBox();
    horizontalPanel.add(checkBox);
    checkBox.setValue(experiment.getExtraDataCollectionDeclarations().contains(decl));

    Label lblTime = new Label(getDeclLabel());
    lblTime.setStyleName("gwt-Label-Header");
    horizontalPanel.add(lblTime);
    lblTime.setWidth("400px");

    checkBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
        public void onValueChange(ValueChangeEvent<Boolean> event) {
            updateExperiment(event.getValue());
        }

    });

}

From source file:com.google.sampling.experiential.client.InputsPanel.java

License:Open Source License

public InputsPanel(InputsListPanel parent, InputDAO input) {
    this.input = input;
    this.parent = parent;
    mainPanel = new VerticalPanel();
    mainPanel.setStyleName("inputsBordered");
    mainPanel.setSpacing(2);//from w w  w. j  a  v  a  2s  .  co m
    mainPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    initWidget(mainPanel);
    mainPanel.setWidth("258px");

    createLayout();
}

From source file:com.google.sampling.experiential.client.ListChoicePanel.java

License:Open Source License

/**
 * @param listChoicesPanel/*from  w  w w. j  ava  2  s  .  c  o  m*/
 */
public ListChoicePanel(ListChoicesPanel listChoicesPanel) {
    this.parent = listChoicesPanel;
    horizontalPanel = new HorizontalPanel();
    horizontalPanel.setSpacing(2);
    horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    initWidget(horizontalPanel);
    horizontalPanel.setWidth("258px");

    Label lblTime = new Label("Choice: ");
    lblTime.setStyleName("gwt-Label-Header");
    horizontalPanel.add(lblTime);
    lblTime.setWidth("45px");

    textField = new TextBox();
    horizontalPanel.add(textField);
    textField.addValueChangeHandler(new ValueChangeHandler() {
        public void onValueChange(ValueChangeEvent event) {
            updateChoice();
        }
    });

    Button btnDelete = new Button("-");
    btnDelete.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            deleteThis();
        }

    });
    horizontalPanel.add(btnDelete);

    Button btnAdd = new Button("+");
    horizontalPanel.add(btnAdd);

    btnAdd.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            addChoicePanel();
        }

    });
}