boundElement = xblManager.getXblBoundElement(s);
contentElementDomAttrModifiedEventListener =
new ContentElementDOMAttrModifiedEventListener();
XBLEventSupport es = (XBLEventSupport)
shadowTree.initializeEventSupport();
shadowTreeNodeInsertedListener = new ShadowTreeNodeInsertedListener();
shadowTreeNodeRemovedListener = new ShadowTreeNodeRemovedListener();
shadowTreeSubtreeModifiedListener
= new ShadowTreeSubtreeModifiedListener();
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeInserted",
shadowTreeNodeInsertedListener, true);
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeRemoved",
shadowTreeNodeRemovedListener, true);
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMSubtreeModified",
shadowTreeSubtreeModifiedListener, true);
es = (XBLEventSupport)
((AbstractNode) boundElement).initializeEventSupport();
domAttrModifiedEventListener = new DOMAttrModifiedEventListener();
domNodeInsertedEventListener = new DOMNodeInsertedEventListener();
domNodeRemovedEventListener = new DOMNodeRemovedEventListener();
domSubtreeModifiedEventListener = new DOMSubtreeModifiedEventListener();
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMAttrModified",
domAttrModifiedEventListener, true);
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeInserted",
domNodeInsertedEventListener, true);
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeRemoved",
domNodeRemovedEventListener, true);
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMSubtreeModified",
domSubtreeModifiedEventListener, false);
update(true);