The DOM tree to update.
A tree updater that updates the data tree. It serves as a source of modification events which the object being created will listen on.
The node which contains the tree to update.
A tree updater that updates the data tree. It serves as a source of modification events which the object being created will listen on.
Handles "BeforeDeleteNode" events.
The event.
Handles "InsertNodeAt" events.
The event.
Handles "SetAttributeNS" events.
The event.
Handles "SetTextNodeValue" events.
The event.
Splits a DOM tree into two halves.
The node at which the splitting operation should end. This node will be split but the function won't split anything above this node.
The node at which to start.
The index at which to start in the node.
An array containing in order the first and second half of the split.
A complex method. Removes the contents between the start and end carets from the DOM tree. If two text nodes become adjacent, they are merged.
A pair of items. The first item is a DLoc
object indicating
the position where the cut happened. The second item is a list of nodes,
the cut contents.
A primitive method. Removes a node from the DOM tree. This method must not be called directly by code that performs changes of the DOM tree at a high level, because it does not prevent two text nodes from being contiguous after deletion of the node. Call removeNode instead. This method is meant to be used by other complex methods of TreeUpdater and by some low-level facilities of wed.
The node to remove
A complex method. Deletes text from a text node. If the text node becomes empty, it is deleted.
Where to delete.
The length of text to delete.
A complex method. This is a convenience method that will call primitive methods to insert the specified item at the specified location. Note that this method returns nothing even if the primitives it uses return some information.
The location where to insert.
The data to insert.
A complex method. Inserts the specified item before another one. Note that
the order of operands is the same as for the insertBefore
DOM method.
The node that contains the two other parameters.
The node to insert.
The node in front of which to insert. A value of
null
results in appending to the parent node.
A complex method. Inserts an element into text, effectively splitting the text node in two. This function takes care to modify the DOM tree only once.
The location at which to cut.
The node to insert.
The first element of the array is a DLoc
at the boundary
between what comes before the material inserted and the material
inserted. The second element of the array is a DLoc
at the boundary
between the material inserted and what comes after. If I insert "foo" at
position 2 in "abcd", then the final result would be "abfoocd" and the
first location would be the boundary between "ab" and "foo" and the second
location the boundary between "foo" and "cd".
A primitive method. Inserts a node at the specified position.
The location at which to insert.
The node to insert.
A complex method. Inserts text into a node. This function will use already existing text nodes whenever possible rather than create a new text node.
The location at which to insert the text.
The text to insert.
Whether the returned caret should be at the end of the
inserted text or the start. If not specified, the default is true
.
The result of inserting text.
A complex method. If the node is a text node and followed by a text node, this method will combine them.
The node to check. This method will fail with an exception if
this parameter is undefined
or null
. Use mergeTextNodesNF if
you want a method that will silently do nothing if undefined
or
null
are expected values.
A position between the two parts that were merged, or between the two nodes that were not merged (because they were not both text).
A complex method. If the node is a text node and followed by a text node, this method will combine them.
The node to check. This method will do nothing if the node to
remove is undefined
or null
.
A position between the two parts that were merged, or between the
two nodes that were not merged (because they were not both text). This will
be undefined
if there was no node to remove.
Converts a node to a path.
The node for which to return a path.
The path of the node relative to the root of the tree we are updating.
Converts a path to a node.
The path to convert.
The node corresponding to the path passed.
A complex method. Removes a node from the DOM tree. If two text nodes become adjacent, they are merged.
The node to remove. This method will fail with an exception if
this parameter is undefined
or null
. Use removeNodeNF if you
want a method that will silently do nothing if undefined
or null
are expected values.
A location between the two parts that were merged, or between the two nodes that were not merged (because they were not both text).
A complex method. Removes a node from the DOM tree. If two text nodes become adjacent, they are merged.
The node to remove. This method will do nothing if the node to
remove is undefined
or null
.
A location between the two parts that were merged, or between the
two nodes that were not merged (because they were not both text). This will
be undefined
if there was no node to remove.
A complex method. Removes a list of nodes from the DOM tree. If two text nodes become adjacent, they are merged.
These nodes must be immediately contiguous siblings in document order.
The location between the two parts that were merged, or between the two nodes that were not merged (because they were not both text). Undefined if the list of nodes is empty.
Check whether a tooltip should be destroyed when the element is removed from the tree. This function checks whether the element or any descendant has a tooltip.
An element to check.
A complex method. Sets an attribute to a value. Setting to the value
null
or undefined
deletes the attribute. This method sets
attributes outside of any namespace.
The node to modify.
The name of the attribute to modify.
The value to give to the attribute.
A primitive method. Sets an attribute to a value. Setting to the value
null
or undefined
deletes the attribute.
The node to modify.
The URI of the namespace of the attribute.
The name of the attribute to modify.
The value to give to the attribute.
A complex method. Sets a text node to a specified value.
The node to modify.
The new value of the node.
A primitive method. Sets a text node to a specified value. This method must not be called directly by code that performs changes of the DOM tree at a high level, because it does not prevent a text node from becoming empty. Call TreeUpdater.setTextNode instead. This method is meant to be used by other complex methods of TreeUpdater and by some low-level facilities of wed.
The node to modify. Must be a text node.
The new value of the node.
A complex method. Splits a DOM tree into two halves.
The node at which the splitting operation should end. This node will be split but the function won't split anything above this node.
The location where to start the split.
An array containing in order the first and second half of the split.
Generated using TypeDoc
Updates a GUI tree so that its data nodes (those nodes that are not decorations) mirror a data tree.