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)
| 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 |
no test coverage detected