2016-02-06 48 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

它的工作原理..謝謝 –

相關問題