Top Fields Constructors Methods
com.sun.webkit.dom

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 static final int
public static final int
public static final int
Inherited from com.sun.webkit.dom.EventImpl:
AT_TARGETBLURBUBBLING_PHASECAPTURING_PHASECHANGECLICKDBLCLICKDRAGDROPFOCUSKEYDOWNKEYPRESSKEYUPMOUSEDOWNMOUSEDRAGMOUSEMOVEMOUSEOUTMOUSEOVERMOUSEUPNONESELECT

Constructor Summary

AccessConstructor and Description
pack-priv
MutationEventImpl(long peer)

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.

pack-priv static native short
getAttrChangeImpl(long peer)

public String
getAttrName()

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

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

pack-priv static native String
getAttrNameImpl(long peer)

pack-priv static MutationEvent
public String
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.

pack-priv static native String
getNewValueImpl(long peer)

public String
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.

pack-priv static native String
getPrevValueImpl(long peer)

public Node
getRelatedNode()

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

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

pack-priv static native long
getRelatedNodeImpl(long peer)

public void
initMutationEvent(String
Specifies the event type.
type
,
boolean
Specifies whether or not the event can bubble.
canBubble
,
boolean
Specifies whether or not the event's default action can be prevented.
cancelable
,
Node
Specifies the Event's related Node.
relatedNode
,
String
Specifies the Event's prevValue attribute. This value may be null.
prevValue
,
String
Specifies the Event's newValue attribute. This value may be null.
newValue
,
String
Specifies the Event's attrName attribute. This value may be null.
attrName
,
short
Specifies the Event's attrChange attribute
attrChange
)

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

The initMutationEvent method is used to initialize the value of a MutationEvent created through the DocumentEvent interface.

pack-priv static native void
initMutationEventImpl(long peer, String type, boolean canBubble, boolean cancelable, long relatedNode, String prevValue, String newValue, String attrName, short attrChange)

Inherited from com.sun.webkit.dom.EventImpl:
createequalsgetBubblesgetBubblesImplgetCancelablegetCancelableImplgetCancelBubblegetCancelBubbleImplgetCurrentTargetgetCurrentTargetImplgetDefaultPreventedgetDefaultPreventedImplgetEventPhasegetEventPhaseImplgetIsTrustedgetIsTrustedImplgetPeergetPeergetReturnValuegetReturnValueImplgetSrcElementgetSrcElementImplgetTargetgetTargetImplgetTimeStampgetTimeStampImplgetTypegetTypeImplhashCodeinitEventinitEventImplpreventDefaultpreventDefaultImplsetCancelBubblesetCancelBubbleImplsetReturnValuesetReturnValueImplstopImmediatePropagationstopImmediatePropagationImplstopPropagationstopPropagationImpl

Field Detail

ADDITIONback to summary
public static final int ADDITION

Hides org.w3c.dom.events.MutationEvent.ADDITION.

MODIFICATIONback to summary
public static final int MODIFICATION

Hides org.w3c.dom.events.MutationEvent.MODIFICATION.

REMOVALback to summary
public static final int REMOVAL

Hides org.w3c.dom.events.MutationEvent.REMOVAL.

Constructor Detail

MutationEventImplback to summary
pack-priv MutationEventImpl(long peer)

Method Detail

getAttrChangeback to summary
public short getAttrChange()

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

Doc from 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.

getAttrChangeImplback to summary
pack-priv static native short getAttrChangeImpl(long peer)
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.

getAttrNameImplback to summary
pack-priv static native String getAttrNameImpl(long peer)
getImplback to summary
pack-priv static MutationEvent getImpl(long peer)

Hides com.sun.webkit.dom.EventImpl.getImpl.

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.

getNewValueImplback to summary
pack-priv static native String getNewValueImpl(long peer)
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.

getPrevValueImplback to summary
pack-priv static native String getPrevValueImpl(long peer)
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.

getRelatedNodeImplback to summary
pack-priv static native long getRelatedNodeImpl(long peer)
initMutationEventback to summary
public void initMutationEvent(String type, boolean canBubble, boolean cancelable, Node relatedNode, String prevValue, String newValue, String attrName, short attrChange)

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

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

The initMutationEvent method is used to initialize the value of a MutationEvent created through the DocumentEvent interface. This method may only be called before the MutationEvent has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.

Parameters
type:String

Specifies the event type.

canBubble:boolean

Specifies whether or not the event can bubble.

cancelable:boolean

Specifies whether or not the event's default action can be prevented.

relatedNode:Node

Specifies the Event's related Node.

prevValue:String

Specifies the Event's prevValue attribute. This value may be null.

newValue:String

Specifies the Event's newValue attribute. This value may be null.

attrName:String

Specifies the Event's attrName attribute. This value may be null.

attrChange:short

Specifies the Event's attrChange attribute

initMutationEventImplback to summary
pack-priv static native void initMutationEventImpl(long peer, String type, boolean canBubble, boolean cancelable, long relatedNode, String prevValue, String newValue, String attrName, short attrChange)