class 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("");
        }
    }

    public  CollapsedDefinitionPaletteItemWidgetViewImpl();
    @Inject public  CollapsedDefinitionPaletteItemWidgetViewImpl(final Button icon,
                                                        final DOMGlyphRenderers domGlyphRenderers);

}