class CollapsedDefinitionPaletteItemWidget implements CollapsedDefinitionPaletteItemWidgetView.Presenter {

    @Override
    public void initialize(final CollapsedDefaultPaletteItem item,
                           final ShapeFactory<?, ?> shapeFactory,
                           final Consumer<PaletteItemMouseEvent> itemMouseDownCallback) {
        this.item = item;
        final Glyph glyph = shapeFactory.getGlyph(item.getDefinitionId(),
                                                  AbstractPalette.PaletteGlyphConsumer.class);
        this.itemMouseDownCallback = itemMouseDownCallback;
        view.render(glyph,
                    item.getIconSize(),
                    item.getIconSize());
    }

    @Inject public  CollapsedDefinitionPaletteItemWidget(final CollapsedDefinitionPaletteItemWidgetView view);

}