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

Method setLeadSelectionPath

unused/javax/swing/JTree.java:1670–1680  ·  view source on GitHub ↗

Sets the path identifies as the lead. The lead may not be selected. The lead is not maintained by JTree , rather the UI will update it. This is a bound property. @param newPath the new lead path @since 1.3 @beaninfo bound: true description: Lead selection path

(TreePath newPath)

Source from the content-addressed store, hash-verified

1668 * description: Lead selection path
1669 */
1670 public void setLeadSelectionPath(TreePath newPath) {
1671 TreePath oldValue = leadPath;
1672
1673 leadPath = newPath;
1674 firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, newPath);
1675
1676 if (accessibleContext != null){
1677 ((AccessibleJTree)accessibleContext).
1678 fireActiveDescendantPropertyChange(oldValue, newPath);
1679 }
1680 }
1681
1682 /**
1683 * Sets the path identified as the anchor.

Callers 1

setDropLocationMethod · 0.95

Calls 2

firePropertyChangeMethod · 0.45

Tested by

no test coverage detected