Esempio n. 1
0
 /// <summary>
 /// Sets the root node for this store. See also the root config option.
 /// </summary>
 /// <param name="node"></param>
 public virtual void SetRootNode(Node node)
 {
     this.Call("setRootNode", new JRawValue(node.ToScript()));
 }
Esempio n. 2
0
 /// <summary>
 /// Replaces one child node in this node with another.
 /// </summary>
 /// <param name="newChild">The replacement node</param>
 /// <param name="oldChild">The node to replace</param>
 public virtual void ReplaceChild(Node newChild, NodeProxy oldChild)
 {
     this.Call("replaceChild", new JRawValue(newChild.ToScript()), new JRawValue(oldChild.NodeInstance));
 }
Esempio n. 3
0
 /// <summary>
 /// Sets root node of this tree.
 /// </summary>
 /// <param name="node"></param>
 public virtual void SetRootNode(Node node)
 {
     this.Call("setRootNode", new JRawValue(node.ToScript()));
 }
Esempio n. 4
0
 /// <summary>
 /// Inserts the first node before the second node in this nodes childNodes collection.
 /// </summary>
 /// <param name="node">The node to insert</param>
 /// <param name="refNode">The node to insert before</param>
 public virtual void InsertBefore(Node node, NodeProxy refNode)
 {
     this.Call("insertBefore", new JRawValue(node.ToScript()), new JRawValue(refNode.NodeInstance));
 }
Esempio n. 5
0
 /// <summary>
 /// Insert a node into this node
 /// </summary>
 /// <param name="index">The zero-based index to insert the node at</param>
 /// <param name="node">The node to insert</param>
 public virtual void InsertChild(int index, Node node)
 {
     this.Call("insertChild", index, new JRawValue(node.ToScript()));
 }
Esempio n. 6
0
 /// <summary>
 /// Insert node(s) as the last child node of the root node.
 ///
 /// If the node was previously a child node of another parent node, it will be removed from that node first.
 /// </summary>
 /// <param name="node">The node or Array of nodes to append</param>
 public virtual void AppendChild(Node node)
 {
     this.Call("appendChild", new JRawValue(node.ToScript(false)));
 }
Esempio n. 7
0
 /// <summary>
 /// Replaces one child node in this node with another.
 /// </summary>
 /// <param name="newChild">The replacement node</param>
 /// <param name="oldChild">The node to replace</param>
 public virtual void ReplaceChild(Node newChild, NodeProxy oldChild)
 {
     this.Call("replaceChild", new JRawValue(newChild.ToScript()), new JRawValue(oldChild.NodeInstance));
 }
Esempio n. 8
0
 /// <summary>
 /// Insert a node into this node
 /// </summary>
 /// <param name="index">The zero-based index to insert the node at</param>
 /// <param name="node">The node to insert</param>
 public virtual void InsertChild(int index, Node node)
 {
     this.Call("insertChild", index, new JRawValue(node.ToScript()));
 }
Esempio n. 9
0
 /// <summary>
 /// Inserts the first node before the second node in this nodes childNodes collection.
 /// </summary>
 /// <param name="node">The node to insert</param>
 /// <param name="refNode">The node to insert before</param>
 public virtual void InsertBefore(Node node, NodeProxy refNode)
 {
     this.Call("insertBefore", new JRawValue(node.ToScript()), new JRawValue(refNode.NodeInstance));
 }
Esempio n. 10
0
 /// <summary>
 /// Insert node(s) as the last child node of the root node.
 ///
 /// If the node was previously a child node of another parent node, it will be removed from that node first.
 /// </summary>
 /// <param name="node">The node or Array of nodes to append</param>
 public virtual void AppendChild(Node node)
 {
     this.Call("appendChild", new JRawValue(node.ToScript(false)));
 }