Class CellOverrideLabelAccumulator<T>
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.layer.cell.AbstractOverrider
-
- org.eclipse.nebula.widgets.nattable.layer.cell.CellOverrideLabelAccumulator<T>
-
- All Implemented Interfaces:
IConfigLabelAccumulator
,IConfigLabelProvider
public class CellOverrideLabelAccumulator<T> extends AbstractOverrider
-
-
Constructor Summary
Constructors Constructor Description CellOverrideLabelAccumulator(IRowDataProvider<T> dataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition)
Add labels applicable to this cell positionprotected List<String>
getConfigLabels(Object value, int col)
void
registerOverride(Object cellValue, int col, String configLabel)
Register a config label on the cell-
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.cell.AbstractOverrider
addOverrides, getOverrides, getOverrides, getProvidedLabels, registerOverrides, registerOverrides, registerOverridesOnTop, registerOverridesOnTop, removeOverride
-
-
-
-
Constructor Detail
-
CellOverrideLabelAccumulator
public CellOverrideLabelAccumulator(IRowDataProvider<T> dataProvider)
-
-
Method Detail
-
accumulateConfigLabels
public void accumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition)
Description copied from interface:IConfigLabelAccumulator
Add labels applicable to this cell position- 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
-
registerOverride
public void registerOverride(Object cellValue, int col, String configLabel)
Register a config label on the cell- Parameters:
cellValue
- data value of the cell. This is the backing data value, not the display value.col
- column index of the cellconfigLabel
- to apply. Styles for the cell have to be registered against this label.
-
-