Adds the specified rows (inclusive) to the selection. If the specified indices are within the viewable set of rows, or bound the viewable set of rows, then the specified indices are constrained by the viewable set of rows. If the indices are not within the viewable set of rows, or do not bound the v
(int index0, int index1)
| 2579 | * @param index1 the last index in the range to add to the selection |
| 2580 | */ |
| 2581 | public void addSelectionInterval(int index0, int index1) { |
| 2582 | TreePath[] paths = getPathBetweenRows(index0, index1); |
| 2583 | |
| 2584 | if (paths != null && paths.length > 0) { |
| 2585 | this.getSelectionModel().addSelectionPaths(paths); |
| 2586 | } |
| 2587 | } |
| 2588 | |
| 2589 | /** |
| 2590 | * Removes the specified rows (inclusive) from the selection. If |
no test coverage detected