Example #1
0
 private Button buildNewToolRequestMenuItem() {
   Button newToolBtn = new Button(org.iplantc.core.tito.client.I18N.DISPLAY.requestNewTool());
   newToolBtn.setIcon(AbstractImagePrototype.create(Resources.ICONS.add()));
   newToolBtn.addSelectionListener(
       new SelectionListener<ButtonEvent>() {
         @Override
         public void componentSelected(ButtonEvent ce) {
           new NewToolRequestWindow().show();
         }
       });
   newToolBtn.setId(ID_BTN_NEW_TOOL_BTN);
   return newToolBtn;
 }
Example #2
0
  private Button buildSearchButton() {
    Button searchBtn = new Button();
    searchBtn.addSelectionListener(
        new SelectionListener<ButtonEvent>() {

          @Override
          public void componentSelected(ButtonEvent ce) {
            search(filter.getValue());
          }
        });

    searchBtn.setId(ID_SEARCH_BTN);
    searchBtn.setIcon(AbstractImagePrototype.create(Resources.ICONS.search()));
    return searchBtn;
  }