为什么我不能在 Vaadin-table 中隐藏自动编号列?

Why can't i hide the automated numbering column in my Vaadin-table?

我已经搜索了文档和 Whosebug,但没有找到关于这个似乎是 hard-coded 到 Vaadin-tables 的编号列的信息。 (第一列 1 和 2 在行中为 cell-data)

...我无法上传它的外观截图,因为代表。 有问题的列看起来大致如此:

table {text-align:center; padding:5px;}
th {border-bottom:1px solid black}
<table>
<thead>
<th style="background-color: #f60;"></th><th>ID</th><th>Status</th><th>X</th><th>Y</th><th>Z</th>
</thead>
<tbody><tr><td>1</td><td>2</td><td>1</td><td>x</td><td>y</td><td>z</td></tr>
<tr><td>2</td><td>32</td><td>1</td><td>x</td><td>y</td><td>z</td></tr></tbody>
</table>

违规列的 header 在 #f60/orange 中突出显示。

在 table 的 top-right 的可见性下拉列表中,有一个隐藏它的选项,但是当单击时,该行会暂时隐藏然后重新出现。

- 在可见性下拉列表中,该列没有名称,有一个可点击的勾号来切换可见性和一个空白 space-

我做了 'set the visible columns' 但是这个专栏是 un-hidable 来自 top-level API 似乎。

final String[] COL_HEADERS_ENGLISH = new String[]{"ID","status", "x", "y","z"};
table.setColumnCollapsingAllowed(true);
table.setColumnCollapsed("ID", true);

我想我可以对 Css 隐藏它? 我更愿意找到不同的解决方案。

这个专栏看起来不错,但是......为什么它在那里?

已更改

table.setRowHeaderMode(RowHeaderMode.INDEX);

table.setRowHeaderMode(RowHeaderMode.HIDDEN);

... 当你看你的代码太久而明显的东西被隐藏的那一刻