org.apache.xerces.dom.events
Class MutationEventImpl
- org.w3c.dom.events.Event, org.w3c.dom.events.MutationEvent
public class MutationEventImpl
implements org.w3c.dom.events.MutationEvent
$Id: MutationEventImpl.java 320099 2004-10-06 15:25:33Z mrglavas $
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.
|
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
getAttrChange
public short getAttrChange()
attrChange
indicates the type of change which triggered
the DOMAttrModified event. The values can be MODIFICATION
, ADDITION
, or REMOVAL
.
- getAttrChange in interface org.w3c.dom.events.MutationEvent
getAttrName
public String getAttrName()
- getAttrName in interface org.w3c.dom.events.MutationEvent
- the name of the Attr which
changed, for DOMAttrModified events.
Undefined for others.
getNewValue
public String getNewValue()
- getNewValue in interface org.w3c.dom.events.MutationEvent
- 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()
- getPrevValue in interface org.w3c.dom.events.MutationEvent
- 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()
- getRelatedNode in interface org.w3c.dom.events.MutationEvent
- 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.
- initMutationEvent in interface org.w3c.dom.events.MutationEvent
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.