2016-02-06 45 views
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添加过滤器,但组合框没有出现尚未..如何在eclipse插件中添加过滤器到nattable?

回答

0

你需要创建一个包含过滤器排层组成。看看我们的示例应用程序,看看这是如何在各种情况下完成的。

+0

谢谢你的回答,我可以找到例子吗? –

+0

http://www.vogella.com/tutorials/NatTable/article.html#introduction_examples –

+0

它的工作原理..谢谢 –

相关问题