1 57 package org.enhydra.apache.xerces.dom.events; 58 59 import org.w3c.dom.Node ; 60 import org.w3c.dom.events.MutationEvent ; 61 62 public class MutationEventImpl 63 extends org.enhydra.apache.xerces.dom.events.EventImpl 64 implements MutationEvent 65 { 66 Node relatedNode=null; 67 String prevValue=null,newValue=null,attrName=null; 68 public short attrChange; 71 72 public static final String DOM_SUBTREE_MODIFIED = "DOMSubtreeModified"; 74 public static final String DOM_NODE_INSERTED = "DOMNodeInserted"; 75 public static final String DOM_NODE_REMOVED = "DOMNodeRemoved"; 76 public static final String DOM_NODE_REMOVED_FROM_DOCUMENT = "DOMNodeRemovedFromDocument"; 77 public static final String DOM_NODE_INSERTED_INTO_DOCUMENT = "DOMNodeInsertedIntoDocument"; 78 public static final String DOM_ATTR_MODIFIED = "DOMAttrModified"; 79 public static final String DOM_CHARACTER_DATA_MODIFIED = "DOMCharacterDataModified"; 80 81 85 public String getAttrName() 86 { 87 return attrName; 88 } 89 90 95 public short getAttrChange() 96 { 97 return attrChange; 98 } 99 100 104 public String getNewValue() 105 { 106 return newValue; 107 } 108 109 113 public String getPrevValue() 114 { 115 return prevValue; 116 } 117 118 123 public Node getRelatedNode() 124 { 125 return relatedNode; 126 } 127 128 131 public void initMutationEvent(String typeArg, boolean canBubbleArg, 132 boolean cancelableArg, Node relatedNodeArg, String prevValueArg, 133 String newValueArg, String attrNameArg, short attrChangeArg) 134 { 135 relatedNode=relatedNodeArg; 136 prevValue=prevValueArg; 137 newValue=newValueArg; 138 attrName=attrNameArg; 139 attrChange=attrChangeArg; 140 super.initEvent(typeArg,canBubbleArg,cancelableArg); 141 } 142 143 } 144 | Popular Tags |