1 18 package org.apache.batik.dom.events; 19 20 import org.w3c.dom.Node ; 21 import org.w3c.dom.events.MutationEvent ; 22 23 30 public class DOMMutationEvent extends AbstractEvent implements MutationEvent { 31 32 private Node relatedNode; 33 private String prevValue; 34 private String newValue; 35 private String attrName; 36 private short attrChange; 37 38 47 public Node getRelatedNode() { 48 return relatedNode; 49 } 50 51 56 public String getPrevValue() { 57 return prevValue; 58 } 59 60 65 public String getNewValue() { 66 return newValue; 67 } 68 69 73 public String getAttrName() { 74 return attrName; 75 } 76 77 80 public short getAttrChange() { 81 return attrChange; 82 } 83 84 106 public void initMutationEvent(String typeArg, 107 boolean canBubbleArg, 108 boolean cancelableArg, 109 Node relatedNodeArg, 110 String prevValueArg, 111 String newValueArg, 112 String attrNameArg, 113 short attrChangeArg) { 114 initEvent(typeArg, canBubbleArg, cancelableArg); 115 this.relatedNode = relatedNodeArg; 116 this.prevValue = prevValueArg; 117 this.newValue = newValueArg; 118 this.attrName = attrNameArg; 119 this.attrChange = attrChangeArg; 120 } 121 } 122 | Popular Tags |