如何在TreeTable的第二列中显示树线 [英] How to show tree lines in second column in a TreeTable
本文介绍了如何在TreeTable的第二列中显示树线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用TreeTable(com.jidesoft.grid,请参见 TreeTable )以显示层次结构数据,该数据在第一列上使用特殊的单元格渲染器绘制+/-图标以及树线.因此,典型的视图如下所示:
I am using TreeTable (com.jidesoft.grid, see TreeTable) to display hierarchical data, which uses a special cell renderer on the first column to paint +/- icon as well as tree line. So, a typical View appears as following:
| Column1 | Column2 |
-----------------------------
|+Item1 | Item4 |
| -Item2 | Item5 |
| item3 | item6 |
我想要TreeTable的以下视图,第二列中带有+/-按钮和树线:
While I want the following view for my TreeTable, with +/- buttons and tree lines in second column:
| Column1 | Column2 |
-----------------------------
|Item1 | +Item4 |
|Item2 | -Item5 |
|item3 | item6 |
我看过一个示例,知道这是可能的,但不知道如何实现.有什么建议吗?
I have seen an example and know this is possible, but don't know how to implement this. Any suggestions?
推荐答案
尝试 查看全文