[英]How to add row header to JFace TableViewer?
如何将“行标题”添加到Jface TableViewer
?
Have a look at the Grid
widget from the Nebula Project . 看看星云项目中的
Grid
小部件。
It does support "row headers". 它支持“行标题”。
A TableViewer does not by default provide this capability. 默认情况下,TableViewer不提供此功能。 But you can have a look at this
snippet
to achieve something similar to a row header. 但您可以查看此
snippet
以实现类似于行标题的内容。 This example uses two tables to make the first column fixed and rest of the columns horizontally scrollable. 此示例使用两个表来固定第一列,其余列可水平滚动。 If you do not want fixed columns than you can just use different colors for columns to achieve the look and feel of a row header.
如果您不想要固定列,则可以使用不同的颜色作为列来实现行标题的外观。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.