Class DOMOperationHandlerFactory
Construct a DOM operation factory.
Constructor
-
class DOMOperationHandlerFactory()
Methods
createForestUpdateOperationHandler
-
DOMOperationHandlerFactory#createForestUpdateOperationHandler(anchor, length, replacement, parenthandler)
Arguments: |
- anchor –
- A DeltaJS.tree.Anchor pointing to the first node which
- should be removed. Should point to the location before
which elements should be inserted if no nodes are to be
removed.
- length – Number of tree nodes to be removed
- replacement – Array of replacement tree nodes
- parenthandler –
|
Return a new forest update operation for a sequence of children of the given
node. Remove all children from start through length and replace them with
the subtrees given in the replacement array.
createNodeUpdateOperationHandler
-
DOMOperationHandlerFactory#createNodeUpdateOperationHandler(anchor, newnode)
Arguments: |
- anchor – A DeltaJS.tree.Anchor pointing to the node with old values
- newnode – A DeltaJS.tree.node pointing to the node with the new values
|
Return a new node update operation on the given node.
createOperationHandler
-
DOMOperationHandlerFactory#createOperationHandler(anchor, op, path, remove, insert)
Arguments: |
- anchor – A DeltaJS.tree.Anchor
- op – The operation to create a handler for
- path –
- remove –
- insert –
|
Return a new operation handler for the given operation at the anchor.