1 57 58 package com.sun.org.apache.xerces.internal.dom.events; 59 60 import org.w3c.dom.Node ; 61 import org.w3c.dom.events.MutationEvent ; 62 63 66 67 public class MutationEventImpl 68 extends com.sun.org.apache.xerces.internal.dom.events.EventImpl 69 implements MutationEvent 70 { 71 Node relatedNode=null; 72 String prevValue=null,newValue=null,attrName=null; 73 public short attrChange; 76 77 public static final String DOM_SUBTREE_MODIFIED = "DOMSubtreeModified"; 79 public static final String DOM_NODE_INSERTED = "DOMNodeInserted"; 80 public static final String DOM_NODE_REMOVED = "DOMNodeRemoved"; 81 public static final String DOM_NODE_REMOVED_FROM_DOCUMENT = "DOMNodeRemovedFromDocument"; 82 public static final String DOM_NODE_INSERTED_INTO_DOCUMENT = "DOMNodeInsertedIntoDocument"; 83 public static final String DOM_ATTR_MODIFIED = "DOMAttrModified"; 84 public static final String DOM_CHARACTER_DATA_MODIFIED = "DOMCharacterDataModified"; 85 86 90 public String getAttrName() 91 { 92 return attrName; 93 } 94 95 100 public short getAttrChange() 101 { 102 return attrChange; 103 } 104 105 109 public String getNewValue() 110 { 111 return newValue; 112 } 113 114 118 public String getPrevValue() 119 { 120 return prevValue; 121 } 122 123 128 public Node getRelatedNode() 129 { 130 return relatedNode; 131 } 132 133 136 public void initMutationEvent(String typeArg, boolean canBubbleArg, 137 boolean cancelableArg, Node relatedNodeArg, String prevValueArg, 138 String newValueArg, String attrNameArg, short attrChangeArg) 139 { 140 relatedNode=relatedNodeArg; 141 prevValue=prevValueArg; 142 newValue=newValueArg; 143 attrName=attrNameArg; 144 attrChange=attrChangeArg; 145 super.initEvent(typeArg,canBubbleArg,cancelableArg); 146 } 147 148 } 149 | Popular Tags |