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

Method AccessibleJTree

unused/javax/swing/JTree.java:4125–4139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4123 Accessible leadSelectionAccessible;
4124
4125 public AccessibleJTree() {
4126 // Add a tree model listener for JTree
4127 TreeModel model = JTree.this.getModel();
4128 if (model != null) {
4129 model.addTreeModelListener(this);
4130 }
4131 JTree.this.addTreeExpansionListener(this);
4132 JTree.this.addTreeSelectionListener(this);
4133 leadSelectionPath = JTree.this.getLeadSelectionPath();
4134 leadSelectionAccessible = (leadSelectionPath != null)
4135 ? new AccessibleJTreeNode(JTree.this,
4136 leadSelectionPath,
4137 JTree.this)
4138 : null;
4139 }
4140
4141 /**
4142 * Tree Selection Listener value change method. Used to fire the

Callers

nothing calls this directly

Calls 5

addTreeModelListenerMethod · 0.80
getLeadSelectionPathMethod · 0.80
getModelMethod · 0.45

Tested by

no test coverage detected