org.apache.xerces.dom.events

Class MutationEventImpl

Implemented Interfaces:
Event, MutationEvent

public class MutationEventImpl
extends EventImpl
implements MutationEvent

Version:
$Id: MutationEventImpl.java,v 1.9 2004/10/06 15:25:33 mrglavas Exp $

Field Summary

static String
DOM_ATTR_MODIFIED
static String
DOM_CHARACTER_DATA_MODIFIED
static String
DOM_NODE_INSERTED
static String
DOM_NODE_INSERTED_INTO_DOCUMENT
static String
DOM_NODE_REMOVED
static String
DOM_NODE_REMOVED_FROM_DOCUMENT
static String
DOM_SUBTREE_MODIFIED
short
attrChange

Fields inherited from class org.apache.xerces.dom.events.EventImpl

bubbles, cancelable, currentTarget, eventPhase, initialized, preventDefault, stopPropagation, target, timeStamp, type

Method Summary

short
getAttrChange()
attrChange indicates the type of change which triggered the DOMAttrModified event.
String
getAttrName()
String
getNewValue()
String
getPrevValue()
Node
getRelatedNode()
void
initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg)
Initialize a mutation event, or overwrite the event's current settings with new values of the parameters.

Methods inherited from class org.apache.xerces.dom.events.EventImpl

getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation

Field Details

DOM_ATTR_MODIFIED

public static final String DOM_ATTR_MODIFIED

DOM_CHARACTER_DATA_MODIFIED

public static final String DOM_CHARACTER_DATA_MODIFIED

DOM_NODE_INSERTED

public static final String DOM_NODE_INSERTED

DOM_NODE_INSERTED_INTO_DOCUMENT

public static final String DOM_NODE_INSERTED_INTO_DOCUMENT

DOM_NODE_REMOVED

public static final String DOM_NODE_REMOVED

DOM_NODE_REMOVED_FROM_DOCUMENT

public static final String DOM_NODE_REMOVED_FROM_DOCUMENT

DOM_SUBTREE_MODIFIED

public static final String DOM_SUBTREE_MODIFIED

attrChange

public short attrChange

Method Details

getAttrChange

public short getAttrChange()
attrChange indicates the type of change which triggered the DOMAttrModified event. The values can be MODIFICATION , ADDITION, or REMOVAL.

getAttrName

public String getAttrName()
Returns:
the name of the Attr which changed, for DOMAttrModified events. Undefined for others.

getNewValue

public String getNewValue()
Returns:
the new string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.

getPrevValue

public String getPrevValue()
Returns:
the previous string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.

getRelatedNode

public Node getRelatedNode()
Returns:
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.

initMutationEvent

public void initMutationEvent(String typeArg,
                              boolean canBubbleArg,
                              boolean cancelableArg,
                              Node relatedNodeArg,
                              String prevValueArg,
                              String newValueArg,
                              String attrNameArg,
                              short attrChangeArg)
Initialize a mutation event, or overwrite the event's current settings with new values of the parameters.

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.