0
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, 
            new ComboBoxCellEditor(Arrays.asList("200536", "200538")), 
            DisplayMode.NORMAL, 
            FilterRowDataLayer.FILTER_ROW_COLUMN_LABEL_PREFIX + 2);
    //
    configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, 
            new ComboBoxCellEditor(Arrays.asList("07")), 
            DisplayMode.NORMAL, 
            FilterRowDataLayer.FILTER_ROW_COLUMN_LABEL_PREFIX + 3);
    final Style rowStyle = new Style();
    rowStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR, GUIHelper
            .getColor(197, 212, 231));
    configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, rowStyle, 
            DisplayMode.NORMAL, GridRegion.FILTER_ROW);

我试图在 nattable 中添加过滤器,但 ComboBox 还没有出现..

4

1 回答 1

0

您需要创建一个包含过滤器行的图层组合。查看我们的示例应用程序,了解如何在各种场景中完成此操作。

于 2016-02-06T14:59:46.420 回答