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