@Test public void testSetupContainerComponent() { final SimplePanel container = mock(SimplePanel.class); final Element element = mock(Element.class); final Style style = mock(Style.class); doReturn(container).when(domElement).getContainer(); when(container.getElement()).thenReturn(element); when(element.getStyle()).thenReturn(style); domElement.setupContainerComponent(); verify(style).setPadding(5, PX); verify(container).setWidget(widget); }
void setupContainerComponent() { final SimplePanel container = getContainer(); final Style style = container.getElement().getStyle(); style.setPadding(5, PX); container.setWidget(widget); }
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
                                                                                                  Focusable { void setupContainerComponent() { final SimplePanel container = getContainer(); final Style style = container.getElement().getStyle(); style.setPadding(5, PX); container.setWidget(widget); } }
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
                                                                                                  Focusable { void setupContainerComponent() { final SimplePanel container = getContainer(); final Style style = container.getElement().getStyle(); style.setPadding(5, PX); container.setWidget(widget); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
                                  final GridLayer gridLayer,
                                  final GridWidget gridWidget,
                                  final SessionManager sessionManager,
                                  final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                  final Function<GridCellTuple, Command> hasNoValueCommand,
                                  final Function<GridCellValueTuple, Command> hasValueCommand); }
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
                                                                                                  Focusable { void setupContainerComponent() { final SimplePanel container = getContainer(); final Style style = container.getElement().getStyle(); style.setPadding(5, PX); container.setWidget(widget); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
                                  final GridLayer gridLayer,
                                  final GridWidget gridWidget,
                                  final SessionManager sessionManager,
                                  final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                  final Function<GridCellTuple, Command> hasNoValueCommand,
                                  final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
                                                                                                  Focusable { void setupContainerComponent() { final SimplePanel container = getContainer(); final Style style = container.getElement().getStyle(); style.setPadding(5, PX); container.setWidget(widget); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
                                  final GridLayer gridLayer,
                                  final GridWidget gridWidget,
                                  final SessionManager sessionManager,
                                  final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                  final Function<GridCellTuple, Command> hasNoValueCommand,
                                  final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value);  }