Package libxml2dom :: Module events :: Class EventTarget
[show private | hide private]
[frames | no frames]

Class EventTarget

Known Subclasses:
SVGDocument, SVGElement

An event target class.
See: http://www.w3.org/TR/SVGMobile12/svgudom.html#events__EventTarget
See: http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-EventTarget

The listeners for a node are accessed through the global object. This common
collection is consequently accessed by all nodes in a document, meaning that
distinct objects representing the same node can still obtain the set of
listeners registered for that node. In contrast, any attempt to directly
store listeners on particular objects would result in the specific object
which registered the listeners holding the record of such objects, whereas
other objects obtained independently for the same node would hold no such
record.

Method Summary
  addEventListener(self, type, listener, useCapture)
For the given event 'type', register the given 'listener' for events in the capture phase if 'useCapture' is a true value, or for events in the target and bubble phases otherwise.
  addEventListenerNS(self, namespaceURI, type, listener, useCapture, group)
For the given 'namespaceURI' and event 'type', register the given 'listener' for events in the capture phase if 'useCapture' is a true value, or for events in the target and bubble phases otherwise.
  dispatchEvent(self, evt)
For this node, dispatch event 'evt' to the registered listeners.
  removeEventListener(self, type, listener, useCapture)
For the given event 'type', deregister the given 'listener' for events in the capture phase if 'useCapture' is a true value, or for events in the target and bubble phases otherwise.
  removeEventListenerNS(self, namespaceURI, type, listener, useCapture)
For the given 'namespaceURI' and event 'type', deregister the given 'listener' for events in the capture phase if 'useCapture' is a true value, or for events in the target and bubble phases otherwise.

Method Details

addEventListener(self, type, listener, useCapture)

For the given event 'type', register the given 'listener' for events in
the capture phase if 'useCapture' is a true value, or for events in the
target and bubble phases otherwise.

addEventListenerNS(self, namespaceURI, type, listener, useCapture, group=None)

For the given 'namespaceURI' and event 'type', register the given
'listener' for events in the capture phase if 'useCapture' is a true
value, or for events in the target and bubble phases otherwise.

dispatchEvent(self, evt)

For this node, dispatch event 'evt' to the registered listeners.

removeEventListener(self, type, listener, useCapture)

For the given event 'type', deregister the given 'listener' for events
in the capture phase if 'useCapture' is a true value, or for events in
the target and bubble phases otherwise.

removeEventListenerNS(self, namespaceURI, type, listener, useCapture)

For the given 'namespaceURI' and event 'type', deregister the given
'listener' for events in the capture phase if 'useCapture' is a true
value, or for events in the target and bubble phases otherwise.

Generated by Epydoc 2.1 on Tue Sep 18 23:37:02 2007 http://epydoc.sf.net