Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::XML::MutationEvent Class Reference

#include <MutationEvent.h>

Inheritance diagram for Poco::XML::MutationEvent:

Poco::XML::Event Poco::XML::DOMObject

List of all members.


Detailed Description

The MutationEvent interface provides specific contextual information associated with Mutation events.

Definition at line 54 of file MutationEvent.h.


Public Types

enum  AttrChangeType { MODIFICATION = 1, ADDITION = 2, REMOVAL = 3 }
enum  PhaseType { CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3 }

Public Member Functions

AttrChangeType attrChange () const
 attrName indicates the name of the changed Attr node in a DOMAttrModified event.
const XMLString & attrName () const
void autoRelease ()
bool bubbles () const
 Used to indicate which phase of event flow is currently being evaluated.
bool cancelable () const
EventTargetcurrentTarget () const
 Used to indicate the EventTarget to which the event was originally dispatched.
void duplicate () const
PhaseType eventPhase () const
void initEvent (const XMLString &eventType, bool canBubble, bool isCancelable)
void initMutationEvent (const XMLString &type, bool canBubble, bool cancelable, Node *relatedNode, const XMLString &prevValue, const XMLString &newValue, const XMLString &attrName, AttrChangeType change)
const XMLString & newValue () const
void preventDefault ()
const XMLString & prevValue () const
NoderelatedNode () const
void release () const
 Increases the object's reference count.
void stopPropagation ()
EventTargettarget () const
 The name of the event (case-insensitive). The name must be an XML name.
Poco::UInt64 timeStamp () const
const XMLString & type () const

Static Public Attributes

static const XMLString DOMAttrModified = toXMLString("DOMAttrModified")
static const XMLString DOMCharacterDataModified = toXMLString("DOMCharacterDataModified")
static const XMLString DOMNodeInserted = toXMLString("DOMNodeInserted")
static const XMLString DOMNodeInsertedIntoDocument = toXMLString("DOMNodeInsertedIntoDocument")
static const XMLString DOMNodeRemoved = toXMLString("DOMNodeRemoved")
static const XMLString DOMNodeRemovedFromDocument = toXMLString("DOMNodeRemovedFromDocument")
static const XMLString DOMSubtreeModified = toXMLString("DOMSubtreeModified")

Protected Member Functions

bool isCanceled () const
bool isStopped () const
 returns true if and only if the event has been cancelled.
 MutationEvent (Document *pOwnerDocument, const XMLString &type, EventTarget *pTarget, bool canBubble, bool cancelable, Node *relatedNode, const XMLString &prevValue, const XMLString &newValue, const XMLString &attrName, AttrChangeType change)
 MutationEvent (Document *pOwnerDocument, const XMLString &type, EventTarget *pTarget, bool canBubble, bool cancelable, Node *relatedNode)
 MutationEvent (Document *pOwnerDocument, const XMLString &type)
void setCurrentPhase (PhaseType phase)
 sets the target
void setCurrentTarget (EventTarget *pTarget)
 sets the current phase
void setTarget (EventTarget *pTarget)
 returns true if and only if propagation of the event has been stopped.

Private Attributes

XMLString _attrName
AttrChangeType _change
XMLString _newValue
Node_pRelatedNode
XMLString _prevValue

Friends

class AbstractNode
class Document

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index