org.apache.xerces.dom.events

Class MutationEventImpl

Implemented Interfaces:
org.w3c.dom.events.Event, org.w3c.dom.events.MutationEvent

public class MutationEventImpl
extends EventImpl
implements org.w3c.dom.events.MutationEvent

Version:
$Id: MutationEventImpl.java 320099 2004-10-06 15:25:33Z mrglavas $

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

Fields inherited from interface org.w3c.dom.events.Event

AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE

Fields inherited from interface org.w3c.dom.events.MutationEvent

ADDITION, MODIFICATION, REMOVAL

Method Summary

short
getAttrChange()
attrChange indicates the type of change which triggered the DOMAttrModified event.
String
getAttrName()
String
getNewValue()
String
getPrevValue()
org.w3c.dom.Node
getRelatedNode()
void
initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, org.w3c.dom.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.
Specified by:
getAttrChange in interface org.w3c.dom.events.MutationEvent

getAttrName

public String getAttrName()
Specified by:
getAttrName in interface org.w3c.dom.events.MutationEvent
Returns:
the name of the Attr which changed, for DOMAttrModified events. Undefined for others.

getNewValue

public String getNewValue()
Specified by:
getNewValue in interface org.w3c.dom.events.MutationEvent
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()
Specified by:
getPrevValue in interface org.w3c.dom.events.MutationEvent
Returns:
the previous string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.

getRelatedNode

public org.w3c.dom.Node getRelatedNode()
Specified by:
getRelatedNode in interface org.w3c.dom.events.MutationEvent
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,
                              org.w3c.dom.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.
Specified by:
initMutationEvent in interface org.w3c.dom.events.MutationEvent

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.