Class BodyOverrideConfigLabelAccumulator
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.layer.cell.BodyOverrideConfigLabelAccumulator
-
- All Implemented Interfaces:
IConfigLabelAccumulator,IConfigLabelProvider
public class BodyOverrideConfigLabelAccumulator extends Object implements IConfigLabelProvider
Applies the given labels to all the cells in the grid. Used to apply styles to the entire grid.
-
-
Constructor Summary
Constructors Constructor Description BodyOverrideConfigLabelAccumulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition)Add labels applicable to this cell positionvoidaddOverride(String configLabel)Collection<String>getProvidedLabels()Returns the labels that are provided by thisIConfigLabelAccumulator.voidregisterOverrides(String... configLabels)
-
-
-
Method Detail
-
accumulateConfigLabels
public void accumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition)
Description copied from interface:IConfigLabelAccumulatorAdd labels applicable to this cell position- Specified by:
accumulateConfigLabelsin interfaceIConfigLabelAccumulator- Parameters:
configLabels- the labels currently applied to the cell. The labels contributed by this provider must be added to this stackcolumnPosition- of the cell for which labels are being gatheredrowPosition- of the cell for which labels are being gathered
-
registerOverrides
public void registerOverrides(String... configLabels)
-
addOverride
public void addOverride(String configLabel)
-
getProvidedLabels
public Collection<String> getProvidedLabels()
Returns the labels that are provided by thisIConfigLabelAccumulator. It needs to return all labels that might be applied to support the usage of corresponding selectors in NatTable CSS styling.- Specified by:
getProvidedLabelsin interfaceIConfigLabelProvider- Returns:
- The labels that are provided by this
IConfigLabelAccumulator. - Since:
- 1.4
-
-