Moves to the position of the editor caret.
Whether or not the move is allowed.
Moves to the start of the indicated child field of the node at the current position. Equivalent to walker.childNode(fieldNum, 0)
. If the field is negative, the method counts backward from the last field. Hence, childField(-1)
would move to the start of the last field.
Whether or not the move is allowed.
Moves to the specified offset from the start of the indicated child field of the node at the current position.
Whether or not the move is allowed.
Moves to the end of the document.
Whether or not the move is allowed.
Moves to the start of the document.
Whether or not the move is allowed.
Moves to the end of the same field that includes the current position. The value of walker.node
at this position will always be null.
Whether or not the move is allowed.
Moves to the start of the same field that includes the current position.
Whether or not the move is allowed.
Moves toward the start of the document, moving through the children of any nodes in reverse order. The effect is the same as using the moveLeft
command, except that this method affects the walker position rather than the document caret.
Whether or not the move is allowed.
Moves to the start of the specified line, counting from 0. Negative numbers count backward from the end of the document. Hence, line(-1)
would move to the start of the last line.
The line number to move to, from 0. If negative, counts from the document end.
Whether or not the move is allowed.
Moves toward the end of the document without visiting the children of nodes as they are crossed. For example, this can be called repeatedly to visit every node in a field without "entering" any of those nodes.
Whether or not the move is allowed.
Moves to the position of the target node. The target node must be part of the editor document that this walker was created for. It cannot be the document root as the root cannot be described by any position.
The node to move to; if successful, a new node inserted at this position will appear just before the target.
Whether or not the move is allowed.
Moves to the position of the parent node that contains the current position.
Whether or not the move is allowed.
Moves toward the start of the document without visiting the children of nodes as they are crossed. For example, this can be called repeatedly to visit every node in a field without "entering" any of those nodes.
Whether or not the move is allowed.
Moves to a position inside of the target node. The target node must be part of the editor document that this walker was created for, the specified field must exist on that node, and the index must refer to a node in that field or the field end.
The non-null parent node that will contain the new position.
The index of the child field, from 0 to numFields-1
.
The index of the node within the field, from 0 to the length of the specified field.
Whether or not the move is allowed.
Moves toward the end of the document, moving through the children of any nodes before traversing them. The effect is the same as using the moveRight
command, except that this method affects the walker position rather than the document caret.
Whether or not the move is allowed.
Moves to the end of the editor selection. If there is no selection, moves to the position of the caret.
Whether or not the move is allowed.
Moves to the start of the editor selection. If there is no selection, moves to the position of the caret.
Whether or not the move is allowed.
This API is still under development and is subject to change. Copyright © Math I Can Do Solutions Incorporated and/or its licensors.
Methods used to move through the nodes of a document in a Walker.