OLD | NEW |
(Empty) | |
| 1 package autotest.planner.triage; |
| 2 |
| 3 import autotest.common.ui.NotifyManager; |
| 4 |
| 5 import com.google.gwt.user.client.ui.HTMLPanel; |
| 6 import com.google.gwt.user.client.ui.Panel; |
| 7 import com.google.gwt.user.client.ui.VerticalPanel; |
| 8 |
| 9 |
| 10 public class TriageViewDisplay implements TriageViewPresenter.Display { |
| 11 |
| 12 private Panel container = new VerticalPanel(); |
| 13 |
| 14 public void initialize(HTMLPanel htmlPanel) { |
| 15 htmlPanel.add(container, "triage_failure_tables"); |
| 16 } |
| 17 |
| 18 @Override |
| 19 public void setLoading(boolean loading) { |
| 20 NotifyManager.getInstance().setLoading(loading); |
| 21 container.setVisible(!loading); |
| 22 } |
| 23 |
| 24 @Override |
| 25 public FailureTable.Display generateFailureTable() { |
| 26 FailureTableDisplay display = new FailureTableDisplay(); |
| 27 container.add(display); |
| 28 return display; |
| 29 } |
| 30 |
| 31 @Override |
| 32 public void clearAllFailureTables() { |
| 33 container.clear(); |
| 34 } |
| 35 } |
OLD | NEW |