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

Method fireTreeWillExpand

unused/javax/swing/JTree.java:2827–2842  ·  view source on GitHub ↗

Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the path parameter. @param path the TreePath indicating the node that was expanded @see EventListenerList

(TreePath path)

Source from the content-addressed store, hash-verified

2825 * @see EventListenerList
2826 */
2827 public void fireTreeWillExpand(TreePath path) throws ExpandVetoException {
2828 // Guaranteed to return a non-null array
2829 Object[] listeners = listenerList.getListenerList();
2830 TreeExpansionEvent e = null;
2831 // Process the listeners last to first, notifying
2832 // those that are interested in this event
2833 for (int i = listeners.length-2; i>=0; i-=2) {
2834 if (listeners[i]==TreeWillExpandListener.class) {
2835 // Lazily create the event:
2836 if (e == null)
2837 e = new TreeExpansionEvent(this, path);
2838 ((TreeWillExpandListener)listeners[i+1]).
2839 treeWillExpand(e);
2840 }
2841 }
2842 }
2843
2844 /**
2845 * Notifies all listeners that have registered interest for

Callers 1

setExpandedStateMethod · 0.95

Calls 1

treeWillExpandMethod · 0.80

Tested by

no test coverage detected