org.apache.xerces.dom.events

Class MutationEventImpl

public class MutationEventImpl extends EventImpl implements MutationEvent

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

UNKNOWN:

Field Summary
shortattrChange
static StringDOM_ATTR_MODIFIED
static StringDOM_CHARACTER_DATA_MODIFIED
static StringDOM_NODE_INSERTED
static StringDOM_NODE_INSERTED_INTO_DOCUMENT
static StringDOM_NODE_REMOVED
static StringDOM_NODE_REMOVED_FROM_DOCUMENT
static StringDOM_SUBTREE_MODIFIED
Method Summary
shortgetAttrChange()
attrChange indicates the type of change which triggered the DOMAttrModified event.
StringgetAttrName()
StringgetNewValue()
StringgetPrevValue()
NodegetRelatedNode()
voidinitMutationEvent(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.

Field Detail

attrChange

public short attrChange

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

Method Detail

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.