Tree Collapsed notification. @param e a TreeExpansionEvent
(TreeExpansionEvent e)
| 4208 | * @param e a TreeExpansionEvent |
| 4209 | */ |
| 4210 | public void treeCollapsed(TreeExpansionEvent e) { |
| 4211 | fireVisibleDataPropertyChange(); |
| 4212 | TreePath path = e.getPath(); |
| 4213 | if (path != null) { |
| 4214 | // Set parent to null so AccessibleJTreeNode computes |
| 4215 | // its parent. |
| 4216 | AccessibleJTreeNode node = new AccessibleJTreeNode(JTree.this, |
| 4217 | path, |
| 4218 | null); |
| 4219 | PropertyChangeEvent pce = new PropertyChangeEvent(node, |
| 4220 | AccessibleContext.ACCESSIBLE_STATE_PROPERTY, |
| 4221 | AccessibleState.EXPANDED, |
| 4222 | AccessibleState.COLLAPSED); |
| 4223 | firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, |
| 4224 | null, pce); |
| 4225 | } |
| 4226 | } |
| 4227 | |
| 4228 | /** |
| 4229 | * Tree Model Expansion notification. |
no test coverage detected