Re: Re[2]: Barracuda: Patch for IterativeListModel
"Diez B. Roggisch" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
> Ok, that's fine with me, except that the Diez' IterativeListModel isn't
> abstract. Right now it is defined as:
>
> "public class IterativeListModel extends AbstractTemplateModel implements
> IterativeModel"
>
> and the examples for usage show it being instantiated directly...
>
> IterativeListModel ilm = new IterativeListModel() {
> public Object getItem(Strink key) {
> if(key.equals("MYKEY"))= {
> return _current;
> }
> }}
>
> If we made it abstract, you couldn't do as the examples suggest. So, I
> guess that needs to be figured out as well.
Thats not true - the above construct will create an anonymous class, which can
implement interfaces, thus abstract methods are no problem.
Regarding the postIterate method: I ususally null not needed iterators and
stuff, this one must have slipped me.
Diez
_______________________________________________
Barracuda mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/barracuda
FAQ - http://www.jguru.com/faq/Barracuda