/** * Call this method before any of the {@link SelectionNotifier} methods to ensure * that the {@link SelectionListener} instances are registered with all of the * {@link ColumnGenerator} classes that also implement {@link SelectionNotifier}. */ @Override public void setCellStyleGenerator(CellStyleGenerator generator) { super.setCellStyleGenerator(generator); }
table.setCellStyleGenerator((Table.CellStyleGenerator) (source, itemId, propertyId) -> { if (propertyId != null && propertyId.equals(explanation.getStatus())) { return "selected";
componentComposition.addComponent(component); component.setCellStyleGenerator(createStyleGenerator()); component.addColumnCollapseListener(this::handleColumnCollapsed);