简体   繁体   English

JFace / SWT多行TableViewer行

[英]JFace/SWT multiline TableViewer rows

Is it possible to get multiline (say 2-line) row in JFace tableViewer? 是否可以在JFace tableViewer中获得多行(例如2行)行? I want my long text part spreaded between two lines, and my short lines aligner vertically in the cell. 我希望我的长文本部分分布在两行之间,而我的短行则在单元格中垂直对齐。 How can I achive that result? 我怎样才能得到那个结果?

The table control itself does not support this. 表控件本身不支持此功能。 You will have to paint the content of those cells yourself. 您将不得不自己绘制这些单元格的内容。 There's an official example (Snippet006TableMultiLineCells) on how to do that. 关于如何执行此操作,有一个官方示例(Snippet006TableMultiLineCells)

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

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