简体   繁体   English

更改Nattable中列标题的高度

[英]changing the height of column header in Nattable

I'm developing an swt application, in which Nattable is used to display the data read from CSV files. 我正在开发一个swt应用程序,其中的Nattable用于显示从CSV文件读取的数据。 However, the column headers are not displayed completely (see the figure below). 但是,列标题没有完整显示(请参见下图)。

Nattable网格示例

What is the easiest way to change the height of column headers programmatically, and also make it resizable by user? 以编程方式更改列标题的高度并使其可由用户调整大小的最简单方法是什么?

Change the column header row height programmatically either by using API on the DataLayer of the column header or use the RowResizeCommand 或者通过使用对API编程方式更改列标题行高DataLayer列标题或使用RowResizeCommand

natTable.doCommand(new RowResizeCommand(natTable, 0, 0));

Make it resizable by the user, add the necessary configuration as explained here: Resizable row/column headers in NatTable 使它可调整大小,并按如下说明添加必要的配置: NatTable中可调整大小的行/列标题

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

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