List of usage examples for com.google.gwt.user.client.ui HorizontalPanel setCellVerticalAlignment
public void setCellVerticalAlignment(IsWidget w, VerticalAlignmentConstant align)
From source file:com.google.sampling.experiential.client.ExperimentRow.java
License:Open Source License
private void createDeleteButton(ExperimentDAO experiment, HorizontalPanel horizontalPanel, HorizontalPanel horizontalPanel_1) { Button deleteButton = new Button( experiment.getDeleted() != null && experiment.getDeleted() ? myConstants.unHide() : myConstants.hide()); deleteButton.setStyleName("paco-ExperimentRow-Button"); deleteButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { softDeleteExperiment();/*from w w w . j a v a 2 s. c o m*/ } }); horizontalPanel_1.add(deleteButton); horizontalPanel.setCellVerticalAlignment(deleteButton, HasVerticalAlignment.ALIGN_MIDDLE); }
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(); }//from w w w . j a va 2 s .com }); 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 w ww . j a va2 s .c o m } }); 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 2 s . 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();//from w w w . j a v a 2 s . com } }); 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 www . java 2s.c om*/ } }); 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();/* w w w . jav a2 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 w w w.ja v a 2 s .co m } }); horizontalPanel_1.add(enterButton); horizontalPanel.setCellVerticalAlignment(enterButton, HasVerticalAlignment.ALIGN_MIDDLE); enterButton.setEnabled(!isExperimentPurged()); }
From source file:com.google.sampling.experiential.client.RepeatEveryNPanel.java
License:Open Source License
public RepeatEveryNPanel(String period, final SignalScheduleDAO schedule) { MyConstants myConstants = GWT.create(MyConstants.class); this.schedule = schedule; this.periodLabel = period; HorizontalPanel horizontalPanel = new HorizontalPanel(); horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); horizontalPanel.setSpacing(2);/*from ww w. j a va2 s . c o m*/ horizontalPanel.setSize("265px", "25px"); initWidget(horizontalPanel); Label lblRepeatEvery = new Label(myConstants.repeatEvery() + ":"); lblRepeatEvery.setStyleName("gwt-Label-Header"); horizontalPanel.add(lblRepeatEvery); horizontalPanel.setCellVerticalAlignment(lblRepeatEvery, HasVerticalAlignment.ALIGN_MIDDLE); lblRepeatEvery.setSize("93px", "16px"); final ListBox listBox = new ListBox(); listBox.addItem("1"); listBox.addItem("2"); listBox.addItem("3"); listBox.addItem("4"); listBox.addItem("5"); listBox.addItem("6"); listBox.addItem("7"); listBox.addItem("8"); listBox.addItem("9"); listBox.addItem("10"); listBox.addItem("11"); listBox.addItem("12"); listBox.addItem("13"); listBox.addItem("14"); listBox.addItem("15"); listBox.addItem("16"); listBox.addItem("17"); listBox.addItem("18"); listBox.addItem("19"); listBox.addItem("20"); listBox.addItem("21"); listBox.addItem("22"); listBox.addItem("23"); listBox.addItem("24"); listBox.addItem("25"); listBox.addItem("26"); listBox.addItem("27"); listBox.addItem("28"); listBox.addItem("29"); listBox.addItem("30"); horizontalPanel.add(listBox); listBox.setVisibleItemCount(1); listBox.setSelectedIndex(schedule.getRepeatRate() - 1); listBox.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { schedule.setRepeatRate(listBox.getSelectedIndex() + 1); } }); if (periodLabel == null) { periodLabel = "Days"; } Label lblDays = new Label(periodLabel); lblDays.setStyleName("gwt-Label-Header"); horizontalPanel.add(lblDays); }
From source file:com.google.sampling.experiential.client.SchedulePanel.java
License:Open Source License
public SchedulePanel(SignalScheduleDAO schedule) { this.schedule = schedule; myConstants = GWT.create(MyConstants.class); VerticalPanel verticalPanel = new VerticalPanel(); initWidget(verticalPanel);/*from w ww. j a v a2s . c o m*/ HorizontalPanel horizontalPanel = new HorizontalPanel(); horizontalPanel.setSpacing(3); verticalPanel.add(horizontalPanel); Label lblSignalSchedule = new Label(myConstants.signalSchedule() + ":"); lblSignalSchedule.setStyleName("keyLabel"); horizontalPanel.add(lblSignalSchedule); horizontalPanel.setCellVerticalAlignment(lblSignalSchedule, HasVerticalAlignment.ALIGN_MIDDLE); lblSignalSchedule.setWidth("114px"); final ListBox listBox = createScheduleTypeListBox(); horizontalPanel.add(listBox); horizontalPanel.setCellVerticalAlignment(listBox, HasVerticalAlignment.ALIGN_MIDDLE); listBox.setVisibleItemCount(1); scheduleDetailsPanel = new VerticalPanel(); verticalPanel.add(scheduleDetailsPanel); setPanelForScheduleType(); addListSelectionListener(listBox); verticalPanel.add(createUserEditable(schedule)); verticalPanel.add(createUserEditableOnce(schedule)); }