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

Method getLastSelectedPathComponent

unused/javax/swing/JTree.java:1814–1820  ·  view source on GitHub ↗

Returns the last path component of the selected path. This is a convenience method for getSelectionModel().getSelectionPath().getLastPathComponent(). This is typically only useful if the selection has one path. @return the last path component of the selected path, or null</cod

()

Source from the content-addressed store, hash-verified

1812 * @see TreePath#getLastPathComponent
1813 */
1814 public Object getLastSelectedPathComponent() {
1815 TreePath selPath = getSelectionModel().getSelectionPath();
1816
1817 if(selPath != null)
1818 return selPath.getLastPathComponent();
1819 return null;
1820 }
1821
1822 /**
1823 * Returns the path identified as the lead.

Callers 5

getSelectedNodeMethod · 0.80
mouseClickedMethod · 0.80
actionPerformedMethod · 0.80
valueChangedMethod · 0.80
mouseClickedMethod · 0.80

Calls 2

getSelectionModelMethod · 0.95
getSelectionPathMethod · 0.80

Tested by

no test coverage detected