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

Method expandPath

unused/javax/swing/JTree.java:2213–2221  ·  view source on GitHub ↗

Ensures that the node identified by the specified path is expanded and viewable. If the last item in the path is a leaf, this will have no effect. @param path the TreePath identifying a node

(TreePath path)

Source from the content-addressed store, hash-verified

2211 * @param path the <code>TreePath</code> identifying a node
2212 */
2213 public void expandPath(TreePath path) {
2214 // Only expand if not leaf!
2215 TreeModel model = getModel();
2216
2217 if(path != null && model != null &&
2218 !model.isLeaf(path.getLastPathComponent())) {
2219 setExpandedState(path, true);
2220 }
2221 }
2222
2223 /**
2224 * Ensures that the node in the specified row is expanded and

Callers 8

makeVisibleMethod · 0.95
expandRowMethod · 0.95
expandRootMethod · 0.95
replaceClonesMethod · 0.80
setExpandedNodesMethod · 0.80
createTreeMethod · 0.80
showInfoMethod · 0.80
doAccessibleActionMethod · 0.80

Calls 3

getModelMethod · 0.95
setExpandedStateMethod · 0.95
isLeafMethod · 0.45

Tested by

no test coverage detected