public LabelStack getConfigLabelsByPosition(int columnPosition,
int rowPosition) {
int rowIndex = getRowIndexByPosition(rowPosition);
if (columnPosition == 0
&& RowGroupUtils.isPartOfAGroup(model, rowIndex)) {
LabelStack stack = new LabelStack(GridRegion.ROW_GROUP_HEADER);
IRowGroup<T> group = RowGroupUtils.getRowGroupForRowIndex(model,
rowIndex);
if (RowGroupUtils.isCollapsed(model, group)) {
stack.addLabelOnTop(DefaultRowGroupHeaderLayerConfiguration.GROUP_COLLAPSED_CONFIG_TYPE);
} else {
stack.addLabelOnTop(DefaultRowGroupHeaderLayerConfiguration.GROUP_EXPANDED_CONFIG_TYPE);
}
List<Integer> selectedRowIndexes = convertToRowIndexes(selectionLayer
.getFullySelectedRowPositions());
if (selectedRowIndexes.contains(rowIndex)) {
stack.addLabelOnTop(SelectionStyleLabels.ROW_FULLY_SELECTED_STYLE);
}
return stack;
} else {
return rowHeaderLayer.getConfigLabelsByPosition(columnPosition - 1,