Tree Model Expansion notification. @param e a Tree node insertion event
(TreeExpansionEvent e)
| 4231 | * @param e a Tree node insertion event |
| 4232 | */ |
| 4233 | public void treeExpanded(TreeExpansionEvent e) { |
| 4234 | fireVisibleDataPropertyChange(); |
| 4235 | TreePath path = e.getPath(); |
| 4236 | if (path != null) { |
| 4237 | // TIGER - 4839971 |
| 4238 | // Set parent to null so AccessibleJTreeNode computes |
| 4239 | // its parent. |
| 4240 | AccessibleJTreeNode node = new AccessibleJTreeNode(JTree.this, |
| 4241 | path, |
| 4242 | null); |
| 4243 | PropertyChangeEvent pce = new PropertyChangeEvent(node, |
| 4244 | AccessibleContext.ACCESSIBLE_STATE_PROPERTY, |
| 4245 | AccessibleState.COLLAPSED, |
| 4246 | AccessibleState.EXPANDED); |
| 4247 | firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, |
| 4248 | null, pce); |
| 4249 | } |
| 4250 | } |
| 4251 | |
| 4252 | /** |
| 4253 | * Fire an active descendant property change notification. |
no test coverage detected