use of com.google.gwt.user.client.ui.VerticalPanel in project opentsdb by OpenTSDB.
the class MetricForm method assembleUi.
private void assembleUi() {
setWidth("100%");
{
// Left hand-side panel.
final HorizontalPanel hbox = new HorizontalPanel();
final InlineLabel l = new InlineLabel();
l.setText("Metric:");
hbox.add(l);
final SuggestBox suggest = RemoteOracle.newSuggestBox("metrics", metric);
suggest.setLimit(40);
hbox.add(suggest);
hbox.setWidth("100%");
metric.setWidth("100%");
tagtable.setWidget(0, 0, hbox);
tagtable.getFlexCellFormatter().setColSpan(0, 0, 3);
addTag();
tagtable.setText(1, 0, "Tags");
add(tagtable);
}
{
// Right hand-side panel.
final VerticalPanel vbox = new VerticalPanel();
{
final HorizontalPanel hbox = new HorizontalPanel();
hbox.add(rate);
hbox.add(rate_counter);
hbox.add(x1y2);
vbox.add(hbox);
}
{
final HorizontalPanel hbox = new HorizontalPanel();
final InlineLabel l = new InlineLabel("Rate Ctr Max:");
hbox.add(l);
hbox.add(counter_max);
vbox.add(hbox);
}
{
final HorizontalPanel hbox = new HorizontalPanel();
final InlineLabel l = new InlineLabel("Rate Ctr Reset:");
hbox.add(l);
hbox.add(counter_reset_value);
vbox.add(hbox);
}
{
final HorizontalPanel hbox = new HorizontalPanel();
final InlineLabel l = new InlineLabel();
l.setText("Aggregator:");
hbox.add(l);
hbox.add(aggregators);
vbox.add(hbox);
}
vbox.add(downsample);
{
final HorizontalPanel hbox = new HorizontalPanel();
hbox.add(downsampler);
hbox.add(interval);
hbox.add(fill_policy);
vbox.add(hbox);
}
add(vbox);
}
}
use of com.google.gwt.user.client.ui.VerticalPanel in project opentsdb by OpenTSDB.
the class QueryUi method makeKeyPanel.
/**
* Builds the panel containing the customizations for the key of the graph.
*/
private Widget makeKeyPanel() {
final Grid grid = new Grid(5, 5);
addKeyRadioButton(grid, 0, 0, "out left top");
addKeyRadioButton(grid, 0, 2, "out center top");
addKeyRadioButton(grid, 0, 4, "out right top");
addKeyRadioButton(grid, 1, 1, "top left");
addKeyRadioButton(grid, 1, 2, "top center");
addKeyRadioButton(grid, 1, 3, "top right").setValue(true);
addKeyRadioButton(grid, 2, 0, "out center left");
addKeyRadioButton(grid, 2, 1, "center left");
addKeyRadioButton(grid, 2, 2, "center");
addKeyRadioButton(grid, 2, 3, "center right");
addKeyRadioButton(grid, 2, 4, "out center right");
addKeyRadioButton(grid, 3, 1, "bottom left");
addKeyRadioButton(grid, 3, 2, "bottom center");
addKeyRadioButton(grid, 3, 3, "bottom right");
addKeyRadioButton(grid, 4, 0, "out bottom left");
addKeyRadioButton(grid, 4, 2, "out bottom center");
addKeyRadioButton(grid, 4, 4, "out bottom right");
final Grid.CellFormatter cf = grid.getCellFormatter();
cf.getElement(1, 1).getStyle().setProperty("borderLeft", "1px solid #000");
cf.getElement(1, 1).getStyle().setProperty("borderTop", "1px solid #000");
cf.getElement(1, 2).getStyle().setProperty("borderTop", "1px solid #000");
cf.getElement(1, 3).getStyle().setProperty("borderTop", "1px solid #000");
cf.getElement(1, 3).getStyle().setProperty("borderRight", "1px solid #000");
cf.getElement(2, 1).getStyle().setProperty("borderLeft", "1px solid #000");
cf.getElement(2, 3).getStyle().setProperty("borderRight", "1px solid #000");
cf.getElement(3, 1).getStyle().setProperty("borderLeft", "1px solid #000");
cf.getElement(3, 1).getStyle().setProperty("borderBottom", "1px solid #000");
cf.getElement(3, 2).getStyle().setProperty("borderBottom", "1px solid #000");
cf.getElement(3, 3).getStyle().setProperty("borderBottom", "1px solid #000");
cf.getElement(3, 3).getStyle().setProperty("borderRight", "1px solid #000");
final VerticalPanel vbox = new VerticalPanel();
vbox.add(new InlineLabel("Key location:"));
vbox.add(grid);
vbox.add(horizontalkey);
keybox.setValue(true);
vbox.add(keybox);
vbox.add(nokey);
return vbox;
}
use of com.google.gwt.user.client.ui.VerticalPanel in project goldenorb by jzachr.
the class OrbTrackerStatus method onModuleLoad.
@Override
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
mainPanel = new VerticalPanel();
rootPanel.add(mainPanel);
Image image = new Image("images/logo-full.jpg");
mainPanel.add(image);
// Label titleLabel = new Label("GoldenOrb");
// mainPanel.add(titleLabel);
lastUpdatedLabel = new Label("Last Updated : ");
mainPanel.add(lastUpdatedLabel);
Label lblOrbtrackermembers = new Label("OrbTrackerMembers");
mainPanel.add(lblOrbtrackermembers);
orbTrackerFlexTable = new FlexTable();
mainPanel.add(orbTrackerFlexTable);
orbTrackerFlexTable.setSize("761px", "116px");
orbTrackerFlexTable.setText(0, 0, "Node Name");
orbTrackerFlexTable.setText(0, 1, "Partition Capacity");
orbTrackerFlexTable.setText(0, 2, "Available Partitions");
orbTrackerFlexTable.setText(0, 3, "Reserved Partitions");
orbTrackerFlexTable.setText(0, 4, "In Use Partitions");
orbTrackerFlexTable.setText(0, 5, "Host Name");
orbTrackerFlexTable.setText(0, 6, "Leader");
orbTrackerFlexTable.setText(0, 7, "Port");
jobsGroupedPanel = new HorizontalPanel();
mainPanel.add(jobsGroupedPanel);
jobsGroupedPanel.setSize("258px", "100px");
jobsInProgressPanel = new FlexTable();
jobsInProgressPanel.setText(0, 0, "Jobs In Progress");
jobsGroupedPanel.add(jobsInProgressPanel);
jobsInQueuePanel = new FlexTable();
jobsInQueuePanel.setText(0, 0, "Jobs In Queue");
jobsGroupedPanel.add(jobsInQueuePanel);
jobsInProgressPanel.setTitle("Jobs In Progress");
jobsInQueuePanel.setTitle("Jobs in Queue");
errorLabelOTM = new Label("");
mainPanel.add(errorLabelOTM);
errorLabelJIP = new Label("");
mainPanel.add(errorLabelJIP);
errorLabelJQ = new Label("");
mainPanel.add(errorLabelJQ);
Timer refreshTimer = new Timer() {
public void run() {
refreshWatchDataList();
refreshJobsInProgress();
refreshJobsInQueue();
}
};
refreshTimer.scheduleRepeating(REFRESH_INTERVAL);
}
use of com.google.gwt.user.client.ui.VerticalPanel in project rstudio by rstudio.
the class UnsavedChangesDialog method createMainWidget.
@Override
protected Widget createMainWidget() {
// create cell table
targetsCellTable_ = new CellTable<UnsavedChangesTarget>(15, UnsavedChangesCellTableResources.INSTANCE, KEY_PROVIDER);
selectionModel_ = new MultiSelectionModel<UnsavedChangesTarget>(KEY_PROVIDER);
targetsCellTable_.setSelectionModel(selectionModel_, DefaultSelectionEventManager.<UnsavedChangesTarget>createCheckboxManager());
targetsCellTable_.setWidth("100%", true);
// add columns
addSelectionColumn();
addIconColumn();
addNameAndPathColumn();
// hook-up data provider
dataProvider_ = new ListDataProvider<UnsavedChangesTarget>();
dataProvider_.setList(targets_);
dataProvider_.addDataDisplay(targetsCellTable_);
targetsCellTable_.setPageSize(targets_.size());
// select all by default
for (UnsavedChangesTarget editingTarget : dataProvider_.getList()) selectionModel_.setSelected(editingTarget, true);
// enclose cell table in scroll panel
ScrollPanel scrollPanel = new ScrollPanel();
scrollPanel.setStylePrimaryName(RESOURCES.styles().targetScrollPanel());
scrollPanel.setWidget(targetsCellTable_);
if (dataProvider_.getList().size() > 4)
scrollPanel.setHeight("280px");
// always save check box (may not be shown)
chkAlwaysSave_ = new CheckBox(alwaysSaveOption_);
// main widget
VerticalPanel panel = new VerticalPanel();
Label captionLabel = new Label("The following files have unsaved changes:");
captionLabel.setStylePrimaryName(RESOURCES.styles().captionLabel());
panel.add(captionLabel);
panel.add(scrollPanel);
if (!StringUtil.isNullOrEmpty(alwaysSaveOption_)) {
panel.add(chkAlwaysSave_);
panel.setCellHeight(chkAlwaysSave_, "30px");
panel.setCellVerticalAlignment(chkAlwaysSave_, HasVerticalAlignment.ALIGN_MIDDLE);
}
return panel;
}
use of com.google.gwt.user.client.ui.VerticalPanel in project rstudio by rstudio.
the class NewConnectionSnippetHost method createWidget.
private Widget createWidget() {
VerticalPanel container = new VerticalPanel();
parametersPanel_ = new VerticalPanel();
parametersPanel_.addStyleName(RES.styles().parametersPanel());
container.add(parametersPanel_);
// add the code panel
codePanel_ = new ConnectionCodePanel();
codePanel_.addStyleName(RES.styles().dialogCodePanel());
Grid codeGrid = new Grid(1, 1);
codeGrid.addStyleName(RES.styles().codeGrid());
codeGrid.setCellPadding(0);
codeGrid.setCellSpacing(0);
codeGrid.setWidget(0, 0, codePanel_);
container.add(codeGrid);
return container;
}
Aggregations