APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom.events

public Class MutationEventImpl

extends EventImpl
implements MutationEvent
Class Inheritance
All Implemented Interfaces
org.w3c.dom.events.MutationEvent, org.w3c.dom.events.Event
Imports
org.w3c.dom.Node, org.w3c.dom.events.MutationEvent

Field Summary

Modifier and TypeField and Description
public short
pack-priv String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
pack-priv String
pack-priv String
pack-priv Node
Inherited from com.sun.org.apache.xerces.internal.dom.events.EventImpl:
bubblescancelablecurrentTargeteventPhaseinitializedpreventDefaultstopPropagationtargettimeStamptype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public short
getAttrChange()

Implements org.w3c.dom.events.MutationEvent.getAttrChange.

attrChange indicates the type of change which triggered the DOMAttrModified event.

public String

Returns:

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

Implements org.w3c.dom.events.MutationEvent.getAttrName.

attrName indicates the name of the changed Attr node in a DOMAttrModified event.

public String

Returns:

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

Implements org.w3c.dom.events.MutationEvent.getNewValue.

newValue indicates the new value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharacterDataModified events.

public String

Returns:

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

Implements org.w3c.dom.events.MutationEvent.getPrevValue.

prevValue indicates the previous value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharacterDataModified events.

public Node

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.
getRelatedNode
()

Implements org.w3c.dom.events.MutationEvent.getRelatedNode.

relatedNode is used to identify a secondary node related to a mutation event.

public void
initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg)

Implements org.w3c.dom.events.MutationEvent.initMutationEvent.

Initialize a mutation event, or overwrite the event's current settings with new values of the parameters.

Inherited from com.sun.org.apache.xerces.internal.dom.events.EventImpl:
getBubblesgetCancelablegetCurrentTargetgetEventPhasegetTargetgetTimeStampgetTypeinitEventpreventDefaultstopPropagation

Field Detail

attrChangeback to summary
public short attrChange
attrNameback to summary
pack-priv String attrName
DOM_ATTR_MODIFIEDback to summary
public static final String DOM_ATTR_MODIFIED
DOM_CHARACTER_DATA_MODIFIEDback to summary
public static final String DOM_CHARACTER_DATA_MODIFIED
DOM_NODE_INSERTEDback to summary
public static final String DOM_NODE_INSERTED
DOM_NODE_INSERTED_INTO_DOCUMENTback to summary
public static final String DOM_NODE_INSERTED_INTO_DOCUMENT
DOM_NODE_REMOVEDback to summary
public static final String DOM_NODE_REMOVED
DOM_NODE_REMOVED_FROM_DOCUMENTback to summary
public static final String DOM_NODE_REMOVED_FROM_DOCUMENT
DOM_SUBTREE_MODIFIEDback to summary
public static final String DOM_SUBTREE_MODIFIED
newValueback to summary
pack-priv String newValue
prevValueback to summary
pack-priv String prevValue
relatedNodeback to summary
pack-priv Node relatedNode

Constructor Detail

MutationEventImplback to summary
public MutationEventImpl()

Method Detail

getAttrChangeback to summary
public short getAttrChange()

Implements org.w3c.dom.events.MutationEvent.getAttrChange.

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

getAttrNameback to summary
public String getAttrName()

Implements org.w3c.dom.events.MutationEvent.getAttrName.

Doc from org.w3c.dom.events.MutationEvent.getAttrName.

attrName indicates the name of the changed Attr node in a DOMAttrModified event.

Returns:String

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

getNewValueback to summary
public String getNewValue()

Implements org.w3c.dom.events.MutationEvent.getNewValue.

Doc from org.w3c.dom.events.MutationEvent.getNewValue.

newValue indicates the new value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharacterDataModified events.

Returns:String

the new string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.

getPrevValueback to summary
public String getPrevValue()

Implements org.w3c.dom.events.MutationEvent.getPrevValue.

Doc from org.w3c.dom.events.MutationEvent.getPrevValue.

prevValue indicates the previous value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharacterDataModified events.

Returns:String

the previous string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.

getRelatedNodeback to summary
public Node getRelatedNode()

Implements org.w3c.dom.events.MutationEvent.getRelatedNode.

Doc from org.w3c.dom.events.MutationEvent.getRelatedNode.

relatedNode is used to identify a secondary node related to a mutation event. For example, if a mutation event is dispatched to a node indicating that its parent has changed, the relatedNode is the changed parent. If an event is instead dispatched to a subtree indicating a node was changed within it, the relatedNode is the changed node. In the case of the DOMAttrModified event it indicates the Attr node which was modified, added, or removed.

Returns:Node

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.

initMutationEventback to summary
public void initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg)

Implements org.w3c.dom.events.MutationEvent.initMutationEvent.

Initialize a mutation event, or overwrite the event's current settings with new values of the parameters.