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)
| 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. |
no test coverage detected