FileDocCategorySizeDatePackage
MutationEventImpl.javaAPI DocApache Xerces 3.0.14162Fri Sep 14 20:33:56 BST 2007org.apache.xerces.dom.events

MutationEventImpl

public class MutationEventImpl extends EventImpl implements MutationEvent
An implementation of the DOM Level 2 MutationEvent interface.
xerces.internal
version
$Id: MutationEventImpl.java 533531 2007-04-29 17:24:58Z mrglavas $

Fields Summary
Node
relatedNode
String
prevValue
String
newValue
String
attrName
public short
attrChange
public static final String
DOM_SUBTREE_MODIFIED
public static final String
DOM_NODE_INSERTED
public static final String
DOM_NODE_REMOVED
public static final String
DOM_NODE_REMOVED_FROM_DOCUMENT
public static final String
DOM_NODE_INSERTED_INTO_DOCUMENT
public static final String
DOM_ATTR_MODIFIED
public static final String
DOM_CHARACTER_DATA_MODIFIED
Constructors Summary
Methods Summary
public shortgetAttrChange()
attrChange indicates the type of change which triggered the DOMAttrModified event. The values can be MODIFICATION , ADDITION, or REMOVAL.

        return attrChange;
    
public java.lang.StringgetAttrName()

return
the name of the Attr which changed, for DOMAttrModified events. Undefined for others.


                         
       
        return attrName;
    
public java.lang.StringgetNewValue()

return
the new string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.

        return newValue;
    
public java.lang.StringgetPrevValue()

return
the previous string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.

        return prevValue;
    
public org.w3c.dom.NodegetRelatedNode()

return
a Node related to this event, other than the target that the node was dispatched to. For DOMNodeRemoved, it is the node which was removed. No other uses are currently defined.

        return relatedNode;
    
public voidinitMutationEvent(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.

        relatedNode = relatedNodeArg;
        prevValue = prevValueArg;
        newValue = newValueArg;
        attrName = attrNameArg;
        attrChange = attrChangeArg;
        super.initEvent(typeArg, canBubbleArg, cancelableArg);