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

Method treeCollapsed

unused/javax/swing/JTree.java:4210–4226  ·  view source on GitHub ↗

Tree Collapsed notification. @param e a TreeExpansionEvent

(TreeExpansionEvent e)

Source from the content-addressed store, hash-verified

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.

Callers 1

fireTreeCollapsedMethod · 0.80

Calls 3

getPathMethod · 0.45
firePropertyChangeMethod · 0.45

Tested by

no test coverage detected