Class HierarchicalTreeAlternatingRowConfigLabelAccumulator

java.lang.Object
org.eclipse.nebula.widgets.nattable.grid.cell.AlternatingRowConfigLabelAccumulator
org.eclipse.nebula.widgets.nattable.hierarchical.HierarchicalTreeAlternatingRowConfigLabelAccumulator
All Implemented Interfaces:
ILayerCommandHandler<DisposeResourcesCommand>, IConfigLabelAccumulator, IConfigLabelProvider, ILayerListener

public class HierarchicalTreeAlternatingRowConfigLabelAccumulator extends AlternatingRowConfigLabelAccumulator implements ILayerListener, ILayerCommandHandler<DisposeResourcesCommand>
Specialization of the AlternatingRowConfigLabelAccumulator that calculates the even/odd row labels in a hierarchical tree by inspecting the row spanning of the first level node. For better performance the calculation results are cached. As the cache needs to be cleared on structural changes, this class also implements the ILayerListener to clear the cache automatically on RowStructuralChangeEvents if registered on the given layer via ILayer.addLayerListener(ILayerListener).
Since:
1.6
  • Constructor Details

    • HierarchicalTreeAlternatingRowConfigLabelAccumulator

      public HierarchicalTreeAlternatingRowConfigLabelAccumulator(ILayer layer)
      Parameters:
      layer - The ILayer that is used to determine the row spanning in the first column. Should be the HierarchicalTreeLayer.
  • Method Details