@Test public void selectAndFocus() { scenarioGridWidget.selectAndFocus(); verify(scenarioGridMock, times(1)).select(); verify(scenarioGridPanelMock, times(1)).setFocus(eq(true)); verify(scenarioGridPanelMock, times(1)).ensureCellIsSelected(); assertTrue(scenarioGridWidget.selected); }
public void selectAndFocus() { scenarioGridPanel.getScenarioGrid().select(); scenarioGridPanel.setFocus(true); scenarioGridPanel.ensureCellIsSelected(); selected = true; }
ScenarioGridWidget extends ResizeComposite { public void selectAndFocus() { scenarioGridPanel.getScenarioGrid().select(); scenarioGridPanel.setFocus(true); scenarioGridPanel.ensureCellIsSelected(); selected = true; } }
ScenarioGridWidget extends ResizeComposite { public void selectAndFocus() { scenarioGridPanel.getScenarioGrid().select(); scenarioGridPanel.setFocus(true); scenarioGridPanel.ensureCellIsSelected(); selected = true; }  }
ScenarioGridWidget extends ResizeComposite { public void selectAndFocus() { scenarioGridPanel.getScenarioGrid().select(); scenarioGridPanel.setFocus(true); scenarioGridPanel.ensureCellIsSelected(); selected = true; }  void setScenarioGridPanel(ScenarioGridPanel scenarioGridPanel); void setContent(AbstractScesimModel abstractScesimModel, ScenarioSimulationModel.Type type); ScenarioGridPanel getScenarioGridPanel(); ScenarioSimulationContext getScenarioSimulationContext(); void refreshContent(AbstractScesimModel abstractScesimModel); void unregister(); void clearSelections(); void resetErrors(); AbstractScesimGridModel getModel(); void selectAndFocus(); void deselectAndUnFocus(); boolean isSelected(); @Override void onResize(); }
ScenarioGridWidget extends ResizeComposite { public void selectAndFocus() { scenarioGridPanel.getScenarioGrid().select(); scenarioGridPanel.setFocus(true); scenarioGridPanel.ensureCellIsSelected(); selected = true; }  void setScenarioGridPanel(ScenarioGridPanel scenarioGridPanel); void setContent(AbstractScesimModel abstractScesimModel, ScenarioSimulationModel.Type type); ScenarioGridPanel getScenarioGridPanel(); ScenarioSimulationContext getScenarioSimulationContext(); void refreshContent(AbstractScesimModel abstractScesimModel); void unregister(); void clearSelections(); void resetErrors(); AbstractScesimGridModel getModel(); void selectAndFocus(); void deselectAndUnFocus(); boolean isSelected(); @Override void onResize();  }