@Test public void onResize() { scenarioViewImpl.onResize(); verify(scenarioViewImpl, times(1)).setPixelSize(eq(WIDTH), eq(HEIGHT)); verify(scenarioGridWidgetSpy, times(1)).onResize(); }
@Override public void onResize() { final Widget parent = getParent(); if (parent != null) { final double w = parent.getOffsetWidth(); final double h = parent.getOffsetHeight(); setPixelSize((int) w, (int) h); } scenarioGridWidget.onResize(); }
ScenarioSimulationViewImpl extends KieEditorViewImpl implements ScenarioSimulationView { @Override public void onResize() { final Widget parent = getParent(); if (parent != null) { final double w = parent.getOffsetWidth(); final double h = parent.getOffsetHeight(); setPixelSize((int) w, (int) h); } scenarioGridWidget.onResize(); } }
ScenarioSimulationViewImpl extends KieEditorViewImpl implements ScenarioSimulationView { @Override public void onResize() { final Widget parent = getParent(); if (parent != null) { final double w = parent.getOffsetWidth(); final double h = parent.getOffsetHeight(); setPixelSize((int) w, (int) h); } scenarioGridWidget.onResize(); }  }
ScenarioSimulationViewImpl extends KieEditorViewImpl implements ScenarioSimulationView { @Override public void onResize() { final Widget parent = getParent(); if (parent != null) { final double w = parent.getOffsetWidth(); final double h = parent.getOffsetHeight(); setPixelSize((int) w, (int) h); } scenarioGridWidget.onResize(); }  @Override void init(); @Override ScenarioGridWidget getScenarioGridWidget(); @Override void setScenarioGridWidget(ScenarioGridWidget scenarioGridWidget); @Override void onResize(); }
ScenarioSimulationViewImpl extends KieEditorViewImpl implements ScenarioSimulationView { @Override public void onResize() { final Widget parent = getParent(); if (parent != null) { final double w = parent.getOffsetWidth(); final double h = parent.getOffsetHeight(); setPixelSize((int) w, (int) h); } scenarioGridWidget.onResize(); }  @Override void init(); @Override ScenarioGridWidget getScenarioGridWidget(); @Override void setScenarioGridWidget(ScenarioGridWidget scenarioGridWidget); @Override void onResize();  }