迭代Vaadin表行

迭代Vaadin表行,vaadin,Vaadin,我有一张带过滤器和排序的瓦丁表。是否可以获取当前选定行上方和下方的行ID Object currentRow = table.getValue(); //current selected row Object nextRow = table.nextItemId(currentRow); Object previousRow = table.prevItemId(currentRow);

我有一张带过滤器和排序的瓦丁表。是否可以获取当前选定行上方和下方的行ID

Object currentRow = table.getValue(); //current selected row

Object nextRow = table.nextItemId(currentRow);
Object previousRow = table.prevItemId(currentRow);