Class ClassNameConfigLabelAccumulator

java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.cell.ClassNameConfigLabelAccumulator
All Implemented Interfaces:
IConfigLabelAccumulator, IConfigLabelProvider

public class ClassNameConfigLabelAccumulator extends Object implements IConfigLabelProvider
Adds the Java class name of the cell's data value as a label.
  • Constructor Details

    • ClassNameConfigLabelAccumulator

      public ClassNameConfigLabelAccumulator(IRowDataProvider<?> dataProvider)
  • Method Details

    • accumulateConfigLabels

      public void accumulateConfigLabels(LabelStack configLabel, int columnPosition, int rowPosition)
      Description copied from interface: IConfigLabelAccumulator
      Add labels applicable to this cell position
      Specified by:
      accumulateConfigLabels in interface IConfigLabelAccumulator
      Parameters:
      configLabel - the labels currently applied to the cell. The labels contributed by this provider must be added to this stack
      columnPosition - of the cell for which labels are being gathered
      rowPosition - of the cell for which labels are being gathered
    • getProvidedLabels

      public Collection<String> getProvidedLabels()
      Returns the labels that are provided by this IConfigLabelAccumulator. It needs to return all labels that might be applied to support the usage of corresponding selectors in NatTable CSS styling.
      Specified by:
      getProvidedLabels in interface IConfigLabelProvider
      Returns:
      The labels that are provided by this IConfigLabelAccumulator.
      Since:
      1.4