Esempio n. 1
0
  public void selectMenuButton(int index) {
    deselectButtons();

    // MyToggleButton2 focused = index == 0 ? this.openSearchButton
    // : this.openMenuButton;
    // if(focused != null){
    // focused.setFocus(true);
    // focused.getElement().addClassName("selectedButton");
    // }

    if (index == 0) {
      this.openSearchButton.getElement().addClassName("selectedButton");
    } else {
      this.openMenuButton.getElement().addClassName("selectedButton");
    }
  }