繁体   English   中英

eclipse:treetable从第二列创建树

[英]eclipse : treetable creating the tree from the second column

我设法通过使用net上的各种示例使用treeColumn()来创建一个树形表,它看起来像这样

|   Column1     | Column2      |
--------------------------------
|+ColItem1      | Col2Item1    |
| -Col1subitem1 | Col2subitem2 |
|   item1       | item1        |
|   item2       | item2        |
|   item3       | item3        |

基本上树在第一列上。它是从左侧绘制的。 我想要的是从第二列像这样绘制树:

|   Column1     | Column2        |
----------------------------------
|ColItem1      | +Col2Item1      |
|Col1subitem1  |   -Col2subitem2 |
|item1         |     item1       |
|item2         |     item2       |
|item3         |     item3       |

谁能帮我做到这一点? 还是只是不可能?

通过使用org.eclipse.swt.widgets.Tree小部件,这是不可能的。 但是您可以尝试使用Nebula Grid Component ,它不是本机小部件,它支持某些功能。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM