0
IConfigLabelAccumulator cellLabelAccumulator = new IConfigLabelAccumulator() {
@Override
public void accumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition) {
int rowIndex = bodyDataLayer.getRowIndexByPosition(rowPosition);
if (rowIndex == 2) {
configLabels.addLabel("FOO");
}
}
};
bodyDataLayer.setConfigLabelAccumulator(cellLabelAccumulator);
natTable.getConfigRegistry().registerConfigAttribute(CellConfigAttributes.GRID_LINE_COLOR, GUIHelper.COLOR_GREEN, DisplayMode.NORMAL, "FOO");
,但没有成功。 我该如何做到这一点?谢谢!
你的问题是什么,更多描述添加到问题 –