public class

MutationEventImpl

extends EventImpl
implements MutationEvent
java.lang.Object
   ↳ org.apache.xerces.dom.events.EventImpl
     ↳ org.apache.xerces.dom.events.MutationEventImpl

Summary

Constants
String DOM_ATTR_MODIFIED
String DOM_CHARACTER_DATA_MODIFIED
String DOM_NODE_INSERTED
String DOM_NODE_INSERTED_INTO_DOCUMENT
String DOM_NODE_REMOVED
String DOM_NODE_REMOVED_FROM_DOCUMENT
String DOM_SUBTREE_MODIFIED
[Expand]
Inherited Constants
From interface org.w3c.dom.events.Event
From interface org.w3c.dom.events.MutationEvent
Fields
public short attrChange
[Expand]
Inherited Fields
From class org.apache.xerces.dom.events.EventImpl
Public Constructors
MutationEventImpl()
Public Methods
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.
[Expand]
Inherited Methods
From class org.apache.xerces.dom.events.EventImpl
From class java.lang.Object
From interface org.w3c.dom.events.Event
From interface org.w3c.dom.events.MutationEvent

Constants

public static final String DOM_ATTR_MODIFIED

Constant Value: "DOMAttrModified"

public static final String DOM_CHARACTER_DATA_MODIFIED

Constant Value: "DOMCharacterDataModified"

public static final String DOM_NODE_INSERTED

Constant Value: "DOMNodeInserted"

public static final String DOM_NODE_INSERTED_INTO_DOCUMENT

Constant Value: "DOMNodeInsertedIntoDocument"

public static final String DOM_NODE_REMOVED

Constant Value: "DOMNodeRemoved"

public static final String DOM_NODE_REMOVED_FROM_DOCUMENT

Constant Value: "DOMNodeRemovedFromDocument"

public static final String DOM_SUBTREE_MODIFIED

Constant Value: "DOMSubtreeModified"

Fields

public short attrChange

Public Constructors

public MutationEventImpl ()

Public Methods

public short getAttrChange ()

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

public String getAttrName ()

Returns
  • the name of the Attr which changed, for DOMAttrModified events. Undefined for others.

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.

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.

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.

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.