@Test public void testRender() { final BS3IconTypeGlyph glyph = BS3IconTypeGlyph.create(IconType.ADN); tested.render(glyph, 100, 200); verify(viewSupplier, times(1)).get(); verify(view, times(1)).setWidget(any(Icon.class)); }
@Override public IsElement render(final BS3IconTypeGlyph glyph, final double width, final double height) { final WidgetElementRendererView view = viewInstanceSupplier.get(); final Icon icon = new Icon(glyph.getIconType()); return view.setWidget(icon); }
BS3IconTypeGlyphRenderer implements DOMGlyphRenderer<BS3IconTypeGlyph> { @Override public IsElement render(final BS3IconTypeGlyph glyph, final double width, final double height) { final WidgetElementRendererView view = viewInstanceSupplier.get(); final Icon icon = new Icon(glyph.getIconType()); return view.setWidget(icon); } }
BS3IconTypeGlyphRenderer implements DOMGlyphRenderer<BS3IconTypeGlyph> { @Override public IsElement render(final BS3IconTypeGlyph glyph, final double width, final double height) { final WidgetElementRendererView view = viewInstanceSupplier.get(); final Icon icon = new Icon(glyph.getIconType()); return view.setWidget(icon); } protected  BS3IconTypeGlyphRenderer(); @Inject  BS3IconTypeGlyphRenderer(final @Any ManagedInstance<WidgetElementRendererView> viewInstances);   BS3IconTypeGlyphRenderer(final Supplier<WidgetElementRendererView> viewInstanceSupplier,
                             final Command viewInstancesDestroyer); }
BS3IconTypeGlyphRenderer implements DOMGlyphRenderer<BS3IconTypeGlyph> { @Override public IsElement render(final BS3IconTypeGlyph glyph, final double width, final double height) { final WidgetElementRendererView view = viewInstanceSupplier.get(); final Icon icon = new Icon(glyph.getIconType()); return view.setWidget(icon); } protected  BS3IconTypeGlyphRenderer(); @Inject  BS3IconTypeGlyphRenderer(final @Any ManagedInstance<WidgetElementRendererView> viewInstances);   BS3IconTypeGlyphRenderer(final Supplier<WidgetElementRendererView> viewInstanceSupplier,
                             final Command viewInstancesDestroyer); @Override Class<BS3IconTypeGlyph> getGlyphType(); @Override IsElement render(final BS3IconTypeGlyph glyph,
                            final double width,
                            final double height); @PreDestroy void destroy(); }
BS3IconTypeGlyphRenderer implements DOMGlyphRenderer<BS3IconTypeGlyph> { @Override public IsElement render(final BS3IconTypeGlyph glyph, final double width, final double height) { final WidgetElementRendererView view = viewInstanceSupplier.get(); final Icon icon = new Icon(glyph.getIconType()); return view.setWidget(icon); } protected  BS3IconTypeGlyphRenderer(); @Inject  BS3IconTypeGlyphRenderer(final @Any ManagedInstance<WidgetElementRendererView> viewInstances);   BS3IconTypeGlyphRenderer(final Supplier<WidgetElementRendererView> viewInstanceSupplier,
                             final Command viewInstancesDestroyer); @Override Class<BS3IconTypeGlyph> getGlyphType(); @Override IsElement render(final BS3IconTypeGlyph glyph,
                            final double width,
                            final double height); @PreDestroy void destroy();  }