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

Method setScrollsOnExpand

unused/javax/swing/JTree.java:1102–1109  ·  view source on GitHub ↗

Sets the scrollsOnExpand property, which determines whether the tree might scroll to show previously hidden children. If this property is true (the default), when a node expands the tree can use scrolling to make the maximum possible number of the node's descendants visible

(boolean newValue)

Source from the content-addressed store, hash-verified

1100 * description: Indicates if a node descendant should be scrolled when expanded.
1101 */
1102 public void setScrollsOnExpand(boolean newValue) {
1103 boolean oldValue = scrollsOnExpand;
1104
1105 scrollsOnExpand = newValue;
1106 scrollsOnExpandSet = true;
1107 firePropertyChange(SCROLLS_ON_EXPAND_PROPERTY, oldValue,
1108 newValue);
1109 }
1110
1111 /**
1112 * Returns the value of the <code>scrollsOnExpand</code> property.

Callers 1

setUIPropertyMethod · 0.95

Calls 1

firePropertyChangeMethod · 0.45

Tested by

no test coverage detected