MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / removeSelectionRows

Method removeSelectionRows

unused/javax/swing/JTree.java:2657–2668  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

removeSelectionRowMethod · 0.95

Calls 3

getUIMethod · 0.95
removeSelectionPathsMethod · 0.95
getPathForRowMethod · 0.80

Tested by

no test coverage detected