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

Method setEditable

unused/javax/swing/JTree.java:784–795  ·  view source on GitHub ↗

Determines whether the tree is editable. Fires a property change event if the new setting is different from the existing setting. This is a bound property. @param flag a boolean value, true if the tree is editable @beaninfo bound: true description: Whether the tree is editable.

(boolean flag)

Source from the content-addressed store, hash-verified

782 * description: Whether the tree is editable.
783 */
784 public void setEditable(boolean flag) {
785 boolean oldValue = this.editable;
786
787 this.editable = flag;
788 firePropertyChange(EDITABLE_PROPERTY, oldValue, flag);
789 if (accessibleContext != null) {
790 accessibleContext.firePropertyChange(
791 AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
792 (oldValue ? AccessibleState.EDITABLE : null),
793 (flag ? AccessibleState.EDITABLE : null));
794 }
795 }
796
797 /**
798 * Returns true if the tree is editable.

Callers 2

InspectorBugMethod · 0.45
mainMethod · 0.45

Calls 1

firePropertyChangeMethod · 0.45

Tested by

no test coverage detected