class DefinitionPaletteCategoryWidget implements DefinitionPaletteCategoryWidgetView.Presenter {

    @Override
    public void initialize(final DefaultPaletteCategory category,
                           final ShapeFactory<?, ?> shapeFactory,
                           final Consumer<PaletteItemMouseEvent> itemMouseDownCallback) {
        this.category = category;
        this.itemMouseDownCallback = itemMouseDownCallback;
        final Glyph categoryGlyph = category.getGlyph();
        view.render(categoryGlyph,
                    category.getIconSize(),
                    category.getIconSize());
        renderItems(category.getItems(),
                    shapeFactory);
    }

    @Inject public  DefinitionPaletteCategoryWidget(DefinitionPaletteCategoryWidgetView view,
                                           ManagedInstance<DefinitionPaletteItemWidget> definitionPaletteItemWidgetInstance,
                                           ManagedInstance<DefinitionPaletteGroupWidget> definitionPaletteGroupWidgetInstance);

}