From NatTable styling docs To enable conditional styling, the custom style needs to be registered in the IConfigRegistry against the label defined before. Style style = new Style(); // You can set other attributes here style.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, GUIHelper.COLOR_RED); configRegistry.registerConfigAttribute( CellConfigAttributes.CELL_STYLE, // attribute to apply style, // value of the attribute DisplayMode.NORMAL,...
java,eclipse-rcp,nebula,nattable
I Believe this is possible, if you change the data provider (including the column accessor). I have a similar situation in my product, and I found that the easiest way is to dispose the old table and recreate a new table with the new data....
Do you really want to delete a column or do you simply want to hide a column? Because hiding would be much easier. Of course this depends on your use case and if your data model can be modified to really deleting a column. Nevertheless, the DefaultColumnHeaderDataProvider does not support...
It seems like every change in the list containing columns, given to the column header data provider, is reflected somehow on the UI, even if it's not an event list. public disposeColumns() { columnList.clear(); natTable.doCommand(new StructuralRefreshCommand()); } Or if you have a setColumns(List columnList) method, you could just call setColumns(null);...