Exemple #1
0
 @Override
 public void buttonClick(Button.ClickEvent event) {
   if (event.getButton() == btDetails) {
     if (detailsPanel.isVisible()) {
       detailsPanel.setVisible(false);
       btDetails.setCaption("Show Details");
       layout.setExpandRatio(detailsPanel, 0.0f);
       layout.setExpandRatio(actionsLayout, 1.0f);
     } else {
       detailsPanel.setVisible(true);
       btDetails.setCaption("Hide Details");
       layout.setExpandRatio(detailsPanel, 1.0f);
       layout.setExpandRatio(actionsLayout, 0.0f);
     }
   } else if (event.getButton() == btClose) {
     this.close();
   } else if (event.getButton() == btReportBug) {
     this.close();
     UI ui = UI.getCurrent();
     if (ui instanceof SearchUI) {
       ((SearchUI) ui).reportBug(cause);
     }
   }
 }