示例#1
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();
          }
        });
  }
示例#2
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());
          }
        });
  }
示例#3
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);
  }