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

Method getLeadSelectionRow

unused/javax/swing/JTree.java:1911–1918  ·  view source on GitHub ↗

Returns the row index corresponding to the lead path. @return an integer giving the row index of the lead path, where 0 is the first row in the display; or -1 if leadPath is null

()

Source from the content-addressed store, hash-verified

1909 * if <code>leadPath</code> is <code>null</code>
1910 */
1911 public int getLeadSelectionRow() {
1912 TreePath leadPath = getLeadSelectionPath();
1913
1914 if (leadPath != null) {
1915 return getRowForPath(leadPath);
1916 }
1917 return -1;
1918 }
1919
1920 /**
1921 * Returns true if the item identified by the path is currently selected.

Callers 1

getCurrentComponentMethod · 0.80

Calls 2

getLeadSelectionPathMethod · 0.95
getRowForPathMethod · 0.95

Tested by

no test coverage detected