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

Method isExpanded

unused/javax/swing/JTree.java:2005–2018  ·  view source on GitHub ↗

Returns true if the node identified by the path is currently expanded, @param path the TreePath specifying the node to check @return false if any of the nodes in the node's path are collapsed, true if all nodes in the path are expanded

(TreePath path)

Source from the content-addressed store, hash-verified

2003 * true if all nodes in the path are expanded
2004 */
2005 public boolean isExpanded(TreePath path) {
2006
2007 if(path == null)
2008 return false;
2009 Object value;
2010
2011 do{
2012 value = expandedState.get(path);
2013 if(value == null || !((Boolean)value).booleanValue())
2014 return false;
2015 } while( (path=path.getParentPath())!=null );
2016
2017 return true;
2018 }
2019
2020 /**
2021 * Returns true if the node at the specified display row is currently

Callers 13

dropLocationForPointMethod · 0.95
getToolTipTextMethod · 0.95
isCollapsedMethod · 0.95
isVisibleMethod · 0.95
getNextMatchMethod · 0.95
setExpandedStateMethod · 0.95
replaceClonesMethod · 0.80
treeStructureChangedMethod · 0.80
getCurrentComponentMethod · 0.80
getCurrentComponentMethod · 0.80
getAccessibleStateSetMethod · 0.80

Calls 4

getUIMethod · 0.95
booleanValueMethod · 0.80
getPathForRowMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected