/**
* Adds the event listeners to the document.
*/
protected void addEventListeners(Document doc) {
AbstractNode n = (AbstractNode) doc;
XBLEventSupport es = (XBLEventSupport) n.initializeEventSupport();
mouseclickListener = new MouseClickTracker();
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"click",
mouseclickListener, true);
mouseoverListener = new MouseOverTracker();
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"mouseover",
mouseoverListener, true);
mouseoutListener = new MouseOutTracker();
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"mouseout",
mouseoutListener, true);
domFocusInListener = new DOMFocusInTracker();
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMFocusIn",
domFocusInListener, true);
domFocusOutListener = new DOMFocusOutTracker();
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMFocusOut",
domFocusOutListener, true);
}