@Test public void setFocus() { collectionEditorDOMElementSpy.setFocus(true); verify(widgetMock, times(1)).setFocus(eq(true)); reset(widgetMock); collectionEditorDOMElementSpy.setFocus(false); verify(widgetMock, times(1)).setFocus(eq(false)); }
@Override public void setFocus(final boolean focused) { getWidget().setFocus(focused); }
CollectionEditorDOMElement extends BaseDOMElement<String, CollectionViewImpl> implements TakesValue<String>,
                                                                                                      Focusable { @Override public void setFocus(final boolean focused) { getWidget().setFocus(focused); } }
CollectionEditorDOMElement extends BaseDOMElement<String, CollectionViewImpl> implements TakesValue<String>,
                                                                                                      Focusable { @Override public void setFocus(final boolean focused) { getWidget().setFocus(focused); } CollectionEditorDOMElement(final CollectionViewImpl widget,
                                      final GridLayer gridLayer,
                                      final GridWidget gridWidget); }
CollectionEditorDOMElement extends BaseDOMElement<String, CollectionViewImpl> implements TakesValue<String>,
                                                                                                      Focusable { @Override public void setFocus(final boolean focused) { getWidget().setFocus(focused); } CollectionEditorDOMElement(final CollectionViewImpl widget,
                                      final GridLayer gridLayer,
                                      final GridWidget gridWidget); void setScenarioGridCell(ScenarioGridCell scenarioGridCell); void stopEditingMode(); @Override void initialise(final GridBodyCellRenderContext context); @Override String getValue(); @Override void setValue(final String value); @Override int getTabIndex(); @Override void setTabIndex(final int index); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override @SuppressWarnings("unchecked") void flush(final String value); }
CollectionEditorDOMElement extends BaseDOMElement<String, CollectionViewImpl> implements TakesValue<String>,
                                                                                                      Focusable { @Override public void setFocus(final boolean focused) { getWidget().setFocus(focused); } CollectionEditorDOMElement(final CollectionViewImpl widget,
                                      final GridLayer gridLayer,
                                      final GridWidget gridWidget); void setScenarioGridCell(ScenarioGridCell scenarioGridCell); void stopEditingMode(); @Override void initialise(final GridBodyCellRenderContext context); @Override String getValue(); @Override void setValue(final String value); @Override int getTabIndex(); @Override void setTabIndex(final int index); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override @SuppressWarnings("unchecked") void flush(final String value);  }