示例#1
0
  protected void addMainControls() {

    testNameCombo = UIUtil.addCombo(this, "Test Name:", "left: 10px; top: 30px;", "500px", null);

    metricCombo =
        UIUtil.addCombo(this, "Metric:", "left: 10px; top: 80px;", "100px", Metric.values());

    percentileCombo =
        UIUtil.addCombo(
            this,
            "Percentile:",
            "left: 150px; top: 80px;",
            "100px",
            new String[] {"100", "90", "80", "70", "60", "50", "40", "30", "20", "10"});

    failureCombo =
        UIUtil.addCombo(
            this, "Points to Plot:", "left: 290px; top: 80px;", "100px", FailureType.values());

    addSubmitButton();

    UIUtil.addLayout(this, config.getChartId(), "left: 10px; top: 150px;", "720px", "450px");

    detailsTable = new DetailsTable();
    addComponent(detailsTable, "left: 750px; top: 150px;");
  }
示例#2
0
  private void addKeyLabel(String keyPairName, String filePath, int top) {

    String text = String.format("%s: %s", keyPairName, filePath);
    String position = String.format("left: 30px; top: %spx;", top);

    Label label = UIUtil.addLabel(this, text, position, "500px");
    keyLabels.add(label);
  }
示例#3
0
  protected void addSubmitButton() {

    Button button = UIUtil.addButton(this, "Submit", "left: 420px; top: 80px;", "100px");

    button.addClickListener(
        new Button.ClickListener() {
          public void buttonClick(Button.ClickEvent event) {
            loadChart();
          }
        });
  }
示例#4
0
  protected void addNextChartButton() {

    nextChartButton = UIUtil.addButton(this, "", "left: 750px; top: 120px;", "250px");
    nextChartButton.setStyleName(Reindeer.BUTTON_LINK);

    nextChartButton.addClickListener(
        new Button.ClickListener() {
          public void buttonClick(Button.ClickEvent event) {
            config.getLayoutContext().show(config.getNextLayout(), getParams());
          }
        });
  }
示例#5
0
  private void addKeyRemoveButton(final String keyName, int top) {

    String position = String.format("left: 0px; top: %spx;", top);

    Button button = UIUtil.addButton(this, "[X]", position, "25px");
    button.setStyleName(Reindeer.BUTTON_LINK);

    button.addClickListener(
        new Button.ClickListener() {
          public void buttonClick(Button.ClickEvent event) {
            removeKey(keyName);
          }
        });

    keyRemoveButtons.add(button);
  }
示例#6
0
 void addTitleLabel() {
   UIUtil.addLabel(this, "<b>Manage Keys</b>", "left: 0px; top: 10px;", "120px");
 }
示例#7
0
 private void populateControls() {
   populateTestNames();
   UIUtil.select(testNameCombo, params.getTestName());
   UIUtil.select(metricCombo, params.getMetric());
   UIUtil.select(failureCombo, params.getFailureType());
 }
示例#8
0
 protected void populateTestNames() {
   Set<String> testNames = dataService.getTestNames(params.getModuleId());
   UIUtil.populateCombo(testNameCombo, testNames.toArray(new String[] {}));
 }