()
| 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 |
nothing calls this directly
no test coverage detected