Lines Matching refs:node
70 * <b>Note:</b> When any node in the document is serialized, the
325 * A method to be called when some text was changed in a text node,
328 void replacedText(NodeImpl node) {
333 ((RangeImpl)ranges.elementAt(i)).receiveReplacedText(node);
339 * A method to be called when some text was deleted from a text node,
342 void deletedText(NodeImpl node, int offset, int count) {
347 ((RangeImpl)ranges.elementAt(i)).receiveDeletedText(node,
354 * A method to be called when some text was inserted into a text node,
357 void insertedText(NodeImpl node, int offset, int count) {
362 ((RangeImpl)ranges.elementAt(i)).receiveInsertedText(node,
369 * A method to be called when a text node has been split,
372 void splitData(Node node, Node newNode, int offset) {
377 ((RangeImpl)ranges.elementAt(i)).receiveSplitData(node,
435 * Store event listener registered on a given node
437 * node here won't be GC'ed as long as some listener is registered on it,
438 * since the eventsListeners table will have a reference to the node.
458 * Retreive event listener registered on a given node
477 * event listeners registered with this node. Copies of this object
512 * @param node node to add listener to
518 protected void addEventListener(NodeImpl node, String type,
528 removeEventListener(node, type, listener, useCapture);
530 Vector nodeListeners = getEventListeners(node);
533 setEventListeners(node, nodeListeners);
555 * @param node node to remove listener from
561 protected void removeEventListener(NodeImpl node, String type,
568 Vector nodeListeners = getEventListeners(node);
582 setEventListeners(node, null);
614 * <li>Event is dispatched to a particular target node, which invokes
617 * been set before processing of a node commences, we instead
619 * <li>The node's ancestors are established as destinations for events.
620 * For capture and bubble purposes, node ancestry is determined at
627 * target node. Note that capturing listeners on this node are _not_
633 * flag has not been set, we now return to the target node and process
639 * until the next time this node is visited by dispatchEvent. On the other
652 * @param node node to dispatch to
658 protected boolean dispatchEvent(NodeImpl node, Event event) {
681 evt.target = node;
695 Node p = node;
712 // Handle all capturing listeners on this node
740 // on the target node. Note that capturing listeners on the target
741 // node are _not_ invoked, even during the capture phase.
743 evt.currentTarget = node;
744 Vector nodeListeners = getEventListeners(node);
764 // has been set before processing of a node commences, we
774 // Handle all bubbling listeners on this node
802 // not been set, we now return to the target node and process its
807 // evt.currentTarget = node;
820 * is only used on the target node and does not start a dispatching chain
821 * on the sibling of the target node as this is not part of the subtree
823 * capture dispatcher on every node. This could be optimized hugely
826 * @param n target node (that was directly inserted or removed)
827 * @param e event to be sent to that node and its subtree
843 * Dispatches event to the target node's descendents recursively
845 * @param n node to dispatch to
846 * @param e event to be sent to that node and its subtree
867 * (two values, the Attr node affected (if any) and its previous
872 AttrImpl node;
882 * @param node node to dispatch to
885 protected void dispatchAggregateEvents(NodeImpl node, EnclosingAttr ea) {
887 dispatchAggregateEvents(node, ea.node, ea.oldvalue,
890 dispatchAggregateEvents(node, null, null, (short) 0);
910 * @param node The node to dispatch to
911 * @param enclosingAttr The Attr node (if any) whose value has been changed
918 protected void dispatchAggregateEvents(NodeImpl node,
959 dispatchEvent(node, me);
966 * Determines whether this node is within an Attr
967 * @param node node to get enclosing attribute for
970 protected void saveEnclosingAttr(NodeImpl node) {
978 NodeImpl eventAncestor = node;
985 retval.node = (AttrImpl) eventAncestor;
986 retval.oldvalue = retval.node.getNodeValue();
1002 * A method to be called when a character data node has been modified
1004 void modifyingCharacterData(NodeImpl node, boolean replace) {
1007 saveEnclosingAttr(node);
1013 * A method to be called when a character data node has been modified
1015 void modifiedCharacterData(NodeImpl node, String oldvalue, String value, boolean replace) {
1027 dispatchEvent(node, me);
1032 dispatchAggregateEvents(node, savedEnclosingAttr);
1038 * A method to be called when a character data node has been replaced
1040 void replacedCharacterData(NodeImpl node, String oldvalue, String value) {
1042 //that are required after a character data node has been modified
1045 modifiedCharacterData(node, oldvalue, value, false);
1051 * A method to be called when a node is about to be inserted in the tree.
1053 void insertingNode(NodeImpl node, boolean replace) {
1056 saveEnclosingAttr(node);
1062 * A method to be called when a node has been inserted in the tree.
1064 void insertedNode(NodeImpl node, NodeImpl newInternal, boolean replace) {
1073 true, false, node,
1083 NodeImpl eventAncestor = node;
1086 savedEnclosingAttr.node.getOwnerElement();
1113 dispatchAggregateEvents(node, savedEnclosingAttr);
1127 * A method to be called when a node is about to be removed from the tree.
1129 void removingNode(NodeImpl node, NodeImpl oldChild, boolean replace) {
1154 saveEnclosingAttr(node);
1161 true, false, node, null,
1174 savedEnclosingAttr.node.getOwnerElement();
1194 * A method to be called when a node has been removed from the tree.
1196 void removedNode(NodeImpl node, boolean replace) {
1202 dispatchAggregateEvents(node, savedEnclosingAttr);
1208 * A method to be called when a node is about to be replaced in the tree.
1210 void replacingNode(NodeImpl node) {
1212 saveEnclosingAttr(node);
1219 void replacingData (NodeImpl node) {
1221 saveEnclosingAttr(node);
1226 * A method to be called when a node has been replaced in the tree.
1228 void replacedNode(NodeImpl node) {
1230 dispatchAggregateEvents(node, savedEnclosingAttr);
1246 * A method to be called when an attribute node has been set
1264 * A method to be called when an attribute node has been removed
1292 * A method to be called when an attribute node has been renamed