gnu.xml.dom
Class DomEvent.DomMutationEvent

java.lang.Object
  |
  +--gnu.xml.dom.DomEvent
        |
        +--gnu.xml.dom.DomEvent.DomMutationEvent
All Implemented Interfaces:
org.w3c.dom.events.Event, org.w3c.dom.events.MutationEvent
Enclosing class:
DomEvent

public static final class DomEvent.DomMutationEvent
extends DomEvent
implements org.w3c.dom.events.MutationEvent

"MutationEvent" implementation.


Inner classes inherited from class gnu.xml.dom.DomEvent
DomEvent.DomMutationEvent, DomEvent.DomUIEvent
 
Fields inherited from interface org.w3c.dom.events.MutationEvent
ADDITION, MODIFICATION, REMOVAL
 
Fields inherited from interface org.w3c.dom.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE
 
Constructor Summary
DomEvent.DomMutationEvent(java.lang.String type)
          Constructs an uninitialized mutation event.
 
Method Summary
 short getAttrChange()
          For attribute change events, returns how the attribuet changed
 java.lang.String getAttrName()
          For attribute change events, returns the attribute's name
 java.lang.String getNewValue()
          Returns any "new value" provided by this type of event
 java.lang.String getPrevValue()
          Returns any "previous value" provided by this type of event
 Node getRelatedNode()
          Returns any "related" node provided by this type of event
 void initMutationEvent(java.lang.String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, java.lang.String prevValueArg, java.lang.String newValueArg, java.lang.String attrNameArg, short attrChangeArg)
          Initializes a mutation event
 
Methods inherited from class gnu.xml.dom.DomEvent
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
 

Constructor Detail

DomEvent.DomMutationEvent

public DomEvent.DomMutationEvent(java.lang.String type)
Constructs an uninitialized mutation event.
Method Detail

getRelatedNode

public final Node getRelatedNode()
Returns any "related" node provided by this type of event
Specified by:
getRelatedNode in interface org.w3c.dom.events.MutationEvent

getPrevValue

public final java.lang.String getPrevValue()
Returns any "previous value" provided by this type of event
Specified by:
getPrevValue in interface org.w3c.dom.events.MutationEvent

getNewValue

public final java.lang.String getNewValue()
Returns any "new value" provided by this type of event
Specified by:
getNewValue in interface org.w3c.dom.events.MutationEvent

getAttrName

public final java.lang.String getAttrName()
For attribute change events, returns the attribute's name
Specified by:
getAttrName in interface org.w3c.dom.events.MutationEvent

getAttrChange

public final short getAttrChange()
For attribute change events, returns how the attribuet changed
Specified by:
getAttrChange in interface org.w3c.dom.events.MutationEvent

initMutationEvent

public final void initMutationEvent(java.lang.String typeArg,
                                    boolean canBubbleArg,
                                    boolean cancelableArg,
                                    Node relatedNodeArg,
                                    java.lang.String prevValueArg,
                                    java.lang.String newValueArg,
                                    java.lang.String attrNameArg,
                                    short attrChangeArg)
Initializes a mutation event
Specified by:
initMutationEvent in interface org.w3c.dom.events.MutationEvent
Following copied from interface: org.w3c.dom.events.MutationEvent
Parameters:
typeArgSpecifies - the event type.
canBubbleArgSpecifies - whether or not the event can bubble.
cancelableArgSpecifies - whether or not the event's default action can be prevented.
relatedNodeArgSpecifies - the Event's related Node.
prevValueArgSpecifies - the Event's prevValue attribute. This value may be null.
newValueArgSpecifies - the Event's newValue attribute. This value may be null.
attrNameArgSpecifies - the Event's attrName attribute. This value may be null.
attrChangeArgSpecifies - the Event's attrChange attribute

Source code is GPL'd in the JAXP subproject at http://savannah.gnu.org/projects/classpathx
This documentation was derived from that source code on 2001-07-12.