FileDocCategorySizeDatePackage
MutationEventImpl.javaAPI DocJava SE 6 API3815Tue Jun 10 00:22:38 BST 2008com.sun.org.apache.xerces.internal.dom.events

MutationEventImpl

public class MutationEventImpl extends EventImpl implements MutationEvent
xerces.internal
version
$Id: MutationEventImpl.java,v 1.2.6.1 2005/08/30 10:08:29 sunithareddy Exp $

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);