Class AggregateConfigLabelAccumulator
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.layer.cell.AggregateConfigLabelAccumulator
-
- All Implemented Interfaces:
IConfigLabelAccumulator
,IConfigLabelProvider
public class AggregateConfigLabelAccumulator extends Object implements IConfigLabelProvider
AnIConfigLabelAccumulator
that can aggregate labels from otherIConfigLabelAccumulator
s. All the labels provided by the aggregated accumulators are applied to the cell.
-
-
Constructor Summary
Constructors Constructor Description AggregateConfigLabelAccumulator()
-
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 positionvoid
add(IConfigLabelAccumulator r)
void
add(IConfigLabelAccumulator... r)
Collection<String>
getProvidedLabels()
Returns the labels that are provided by thisIConfigLabelAccumulator
.
-
-
-
Method Detail
-
add
public void add(IConfigLabelAccumulator r)
-
add
public void add(IConfigLabelAccumulator... r)
-
accumulateConfigLabels
public void accumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition)
Description copied from interface:IConfigLabelAccumulator
Add labels applicable to this cell position- Specified by:
accumulateConfigLabels
in 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
-
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:
getProvidedLabels
in interfaceIConfigLabelProvider
- Returns:
- The labels that are provided by this
IConfigLabelAccumulator
. - Since:
- 1.4
-
-