[jdom-interest] Why PartialList is non public and FilterList is public but final ???

Ken Rune Helland kenh at csc.no
Tue Jun 26 08:36:27 PDT 2001


At 07:36 AM 6/26/2001 -0700, Jason Hunter wrote:
>Markus Bernhardt wrote:
> >
> > Hi
> >
> > Got a problem.
> > Need to override PartialList (or FilterList for future).
>
>Why?
>
>-jh-

I think he is makin subclasses of JDOM with an
event model.

Doing this requiers one to catch changes done to the lists
returned by for example Element.getMixedContent()
witch means overiding the List metods of Partial/FilterList.

pseudocode:

Public class EventList extends FilterList
{
         add(Object obj)
         {
                 super.add(obj)
                 //dispatch events
                 ....
         }

         // rest of metods
         ...
}



KenR





More information about the jdom-interest mailing list