use of org.kie.workbench.common.stunner.core.client.components.palette.PaletteGroup in project kie-wb-common by kiegroup.
the class DefinitionPaletteCategoryWidget method renderItems.
private void renderItems(final List<DefaultPaletteItem> items, final ShapeFactory<?, ?> shapeFactory) {
if (items != null && !items.isEmpty()) {
items.forEach(item -> {
if (item instanceof PaletteGroup) {
renderGroup((DefaultPaletteGroup) item, shapeFactory);
} else {
DefinitionPaletteItemWidget categoryItemWidget = definitionPaletteItemWidgetInstance.get();
categoryItemWidget.initialize(item, shapeFactory, itemMouseDownCallback);
view.addItem(categoryItemWidget);
}
});
}
}
Aggregations