@Test public void testRenderEmptyTitle() { this.view.render(glyph, GLYPH_WIDTH, GLYPH_HEIGHT); verify(icon).appendChild(eq(glyphHtmlElement)); verify(icon).setTitle(eq("")); }
@Override public void render(final Glyph glyph, final double width, final double height) { final org.jboss.errai.common.client.api.IsElement glyphElement = domGlyphRenderers.render(glyph, width, height); icon.appendChild(glyphElement.getElement()); final String tooltip = presenter.getItem().getTooltip(); if (!StringUtils.isEmpty(tooltip)) { icon.setTitle(tooltip); } else { icon.setTitle(""); } }
CollapsedDefinitionPaletteItemWidgetViewImpl implements CollapsedDefinitionPaletteItemWidgetView,
                                                                     IsElement { @Override public void render(final Glyph glyph, final double width, final double height) { final org.jboss.errai.common.client.api.IsElement glyphElement = domGlyphRenderers.render(glyph, width, height); icon.appendChild(glyphElement.getElement()); final String tooltip = presenter.getItem().getTooltip(); if (!StringUtils.isEmpty(tooltip)) { icon.setTitle(tooltip); } else { icon.setTitle(""); } } }
CollapsedDefinitionPaletteItemWidgetViewImpl implements CollapsedDefinitionPaletteItemWidgetView,
                                                                     IsElement { @Override public void render(final Glyph glyph, final double width, final double height) { final org.jboss.errai.common.client.api.IsElement glyphElement = domGlyphRenderers.render(glyph, width, height); icon.appendChild(glyphElement.getElement()); final String tooltip = presenter.getItem().getTooltip(); if (!StringUtils.isEmpty(tooltip)) { icon.setTitle(tooltip); } else { icon.setTitle(""); } } CollapsedDefinitionPaletteItemWidgetViewImpl(); @Inject  CollapsedDefinitionPaletteItemWidgetViewImpl(final Button icon,
                                                        final DOMGlyphRenderers domGlyphRenderers); }
CollapsedDefinitionPaletteItemWidgetViewImpl implements CollapsedDefinitionPaletteItemWidgetView,
                                                                     IsElement { @Override public void render(final Glyph glyph, final double width, final double height) { final org.jboss.errai.common.client.api.IsElement glyphElement = domGlyphRenderers.render(glyph, width, height); icon.appendChild(glyphElement.getElement()); final String tooltip = presenter.getItem().getTooltip(); if (!StringUtils.isEmpty(tooltip)) { icon.setTitle(tooltip); } else { icon.setTitle(""); } } CollapsedDefinitionPaletteItemWidgetViewImpl(); @Inject  CollapsedDefinitionPaletteItemWidgetViewImpl(final Button icon,
                                                        final DOMGlyphRenderers domGlyphRenderers); @Override void init(final Presenter presenter); @Override void render(final Glyph glyph,
                       final double width,
                       final double height); @EventHandler("icon") void onMouseDown(final MouseDownEvent mouseDownEvent); @PreDestroy void destroy(); }
CollapsedDefinitionPaletteItemWidgetViewImpl implements CollapsedDefinitionPaletteItemWidgetView,
                                                                     IsElement { @Override public void render(final Glyph glyph, final double width, final double height) { final org.jboss.errai.common.client.api.IsElement glyphElement = domGlyphRenderers.render(glyph, width, height); icon.appendChild(glyphElement.getElement()); final String tooltip = presenter.getItem().getTooltip(); if (!StringUtils.isEmpty(tooltip)) { icon.setTitle(tooltip); } else { icon.setTitle(""); } } CollapsedDefinitionPaletteItemWidgetViewImpl(); @Inject  CollapsedDefinitionPaletteItemWidgetViewImpl(final Button icon,
                                                        final DOMGlyphRenderers domGlyphRenderers); @Override void init(final Presenter presenter); @Override void render(final Glyph glyph,
                       final double width,
                       final double height); @EventHandler("icon") void onMouseDown(final MouseDownEvent mouseDownEvent); @PreDestroy void destroy();  }