public class MutationEventImpl extends EventImpl implements org.w3c.dom.events.MutationEvent
MutationEvent interface.| Modifier and Type | Field and Description | 
|---|---|
| short | attrChange | 
| static java.lang.String | DOM_ATTR_MODIFIED | 
| static java.lang.String | DOM_CHARACTER_DATA_MODIFIED | 
| static java.lang.String | DOM_NODE_INSERTED | 
| static java.lang.String | DOM_NODE_INSERTED_INTO_DOCUMENT | 
| static java.lang.String | DOM_NODE_REMOVED | 
| static java.lang.String | DOM_NODE_REMOVED_FROM_DOCUMENT | 
| static java.lang.String | DOM_SUBTREE_MODIFIED | 
bubbles, cancelable, currentTarget, eventPhase, initialized, preventDefault, stopPropagation, target, timeStamp, type| Constructor and Description | 
|---|
| MutationEventImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| short | getAttrChange()attrChangeindicates the type of change which triggered 
 the DOMAttrModified event. | 
| java.lang.String | getAttrName()attrNameindicates the name of the changedAttrnode in a DOMAttrModified event. | 
| java.lang.String | getNewValue()newValueindicates the new value of theAttrnode in DOMAttrModified events, and of theCharacterDatanode in DOMCharacterDataModified events. | 
| java.lang.String | getPrevValue()prevValueindicates the previous value of theAttrnode in DOMAttrModified events, and of theCharacterDatanode in DOMCharacterDataModified events. | 
| org.w3c.dom.Node | getRelatedNode()relatedNodeis used to identify a secondary node related 
 to a mutation event. | 
| void | initMutationEvent(java.lang.String typeArg,
                 boolean canBubbleArg,
                 boolean cancelableArg,
                 org.w3c.dom.Node relatedNodeArg,
                 java.lang.String prevValueArg,
                 java.lang.String newValueArg,
                 java.lang.String attrNameArg,
                 short attrChangeArg)Initialize a mutation event, or overwrite the event's current
 settings with new values of the parameters. | 
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagationpublic short attrChange
public static final java.lang.String DOM_SUBTREE_MODIFIED
public static final java.lang.String DOM_NODE_INSERTED
public static final java.lang.String DOM_NODE_REMOVED
public static final java.lang.String DOM_NODE_REMOVED_FROM_DOCUMENT
public static final java.lang.String DOM_NODE_INSERTED_INTO_DOCUMENT
public static final java.lang.String DOM_ATTR_MODIFIED
public static final java.lang.String DOM_CHARACTER_DATA_MODIFIED
public java.lang.String getAttrName()
org.w3c.dom.events.MutationEventattrName indicates the name of the changed 
 Attr node in a DOMAttrModified event.getAttrName in interface org.w3c.dom.events.MutationEventpublic short getAttrChange()
attrChange indicates the type of change which triggered 
 the DOMAttrModified event. The values can be MODIFICATION
 , ADDITION, or REMOVAL.getAttrChange in interface org.w3c.dom.events.MutationEventpublic java.lang.String getNewValue()
org.w3c.dom.events.MutationEventnewValue indicates the new value of the Attr 
 node in DOMAttrModified events, and of the CharacterData 
 node in DOMCharacterDataModified events.getNewValue in interface org.w3c.dom.events.MutationEventpublic java.lang.String getPrevValue()
org.w3c.dom.events.MutationEventprevValue indicates the previous value of the 
 Attr node in DOMAttrModified events, and of the 
 CharacterData node in DOMCharacterDataModified events.getPrevValue in interface org.w3c.dom.events.MutationEventpublic org.w3c.dom.Node getRelatedNode()
org.w3c.dom.events.MutationEventrelatedNode is used to identify a secondary node related 
 to a mutation event. For example, if a mutation event is dispatched 
 to a node indicating that its parent has changed, the 
 relatedNode is the changed parent. If an event is 
 instead dispatched to a subtree indicating a node was changed within 
 it, the relatedNode is the changed node. In the case of 
 the DOMAttrModified event it indicates the Attr node 
 which was modified, added, or removed.getRelatedNode in interface org.w3c.dom.events.MutationEventpublic void initMutationEvent(java.lang.String typeArg,
                     boolean canBubbleArg,
                     boolean cancelableArg,
                     org.w3c.dom.Node relatedNodeArg,
                     java.lang.String prevValueArg,
                     java.lang.String newValueArg,
                     java.lang.String attrNameArg,
                     short attrChangeArg)
initMutationEvent in interface org.w3c.dom.events.MutationEventtypeArg - Specifies the event type.canBubbleArg - Specifies whether or not the event can bubble.cancelableArg - Specifies whether or not the event's default 
   action can be prevented.relatedNodeArg - Specifies the Event's related Node.prevValueArg - Specifies the Event's 
   prevValue attribute. This value may be null.newValueArg - Specifies the Event's 
   newValue attribute. This value may be null.attrNameArg - Specifies the Event's 
   attrName attribute. This value may be null.attrChangeArg - Specifies the Event's 
   attrChange attributeCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.