71. setEditable
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 71. setEditable

Parameter syntax:

    [ 'implicitDocument'|'implicitElement' ]? 'false'|'true'|'toggle'

Changes the read-only mark of an element or of the whole document.

- Without option `implicitDocument` or `implicitElement`, this command changes the read-only mark of the explicitly selected element.

- With option `implicitElement`, this command changes the read-only mark of the explicitly or implicitly selected element.

- With option `implicitDocument`, this command changes the read-only mark of the whole document unless an element is explicitly selected, in which case, it changes its read-only mark.

Parameter value:

false

  Removes the read-only mark from selected node and all its descendants then marks the selected node as read-only.

true

  Removes the read-only mark from selected node and all its descendants.

  Note that this commands fails if selected node has an ancestor marked as read-only (because changing the read-only mark would not make selected node editable).

toggle

  If selected node is editable, behaves like when parameter value is false. If selected node is not editable, behaves like when parameter value is true.

Example:

    setEditable [implicitDocument] toggle

Prev | Up | Next
70. selectTo | Home | 72. setObject