SelectionModel currently handles mouse click and keyboard on select row in cellTable.
How do I do it programmatically to move to next/prev row according to current selected row?
SelectionModel currently handles mouse click and keyboard on select row in cellTable. How do
Share
SelectionModel.setSelected(T object, boolean selected)method, passing your next object to be selected andtruefor theselectedparameter.To find the currently selected object (if you don’t hold a reference to it anywhere) you can iterate over all the objects in the CellTable and check which one is selected by calling
SelectionModel.isSelected(T object)method.