Removes the rows that are selected at each of the specified rows. @param rows an array of ints specifying display rows, where 0 is the first row in the display
(int[] rows)
| 2655 | * the first row in the display |
| 2656 | */ |
| 2657 | public void removeSelectionRows(int[] rows) { |
| 2658 | TreeUI ui = getUI(); |
| 2659 | |
| 2660 | if(ui != null && rows != null) { |
| 2661 | int numRows = rows.length; |
| 2662 | TreePath[] paths = new TreePath[numRows]; |
| 2663 | |
| 2664 | for(int counter = 0; counter < numRows; counter++) |
| 2665 | paths[counter] = ui.getPathForRow(this, rows[counter]); |
| 2666 | removeSelectionPaths(paths); |
| 2667 | } |
| 2668 | } |
| 2669 | |
| 2670 | /** |
| 2671 | * Clears the selection. |
no test coverage detected