[jdom-interest] Doc Listeners etc

Kenworthy, Edward edward.kenworthy at exchange.co.uk
Tue Apr 3 06:39:12 PDT 2001

-----Original Message-----
From: philip.nelson at omniresources.com
[mailto:philip.nelson at omniresources.com]
Sent: 03 April 2001 14:17
To: edward.kenworthy at exchange.co.uk; jdom-interest at jdom.org
Subject: RE: [jdom-interest] Doc Listeners etc

> There's doesn't appear to be any support for attaching views 
> or listeners to
> Documents and Elements = nor does the Document appear to get 
> notified of any
> changes to its component Elements. Is this something that 
> will ever appear ?

"Heavily discussed but I don't think it will ever appear."

That's a real shame. Personally I think that lack is the single major
missing part of JDOM. Most of the other niggles are just that. Maybe I'll
have to go hack the source ;-)

> I can (and have) added some of this functionality to Document 
> by wrapping
> it, but the major problem I have is that I can't sub-class 
> Document to add
> in the "listenable" behaviour because Documents get created 
> by a static
> factory (one of the limitations of such an approach) - so 
> wrapping makes
> more sense. This is a bit of a pain (especially as I'll need 
> to repeat it
> with Element). Any chance of it being included ?

"Are you talking about SAXBuilder?"


"There have been about 3 different
approaches suggested to allow subclassing the jdom classes, all of which
have some merit.  Ken Rune Helland (3/13/01) submitted a version that allows
you to specify subclasses to use via a factory.  Jason is hoping for
comments but there haven't been any yet.  How about you?  Or maybe I've
missed your point."

Ah, I don't think I was on the list then. I'll have to go see if I can find
an archive.


More information about the jdom-interest mailing list