[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] Extending a class with a closure
From: "Joan Pujol" <joanpujol () gmail ! com>
Date: 2007-04-30 9:13:50
Message-ID: d2d18a10704300213w95dd735s214ed4d69136a415 () mail ! gmail ! com
[Download RAW message or body]
Hello,
That will be very nice and cover the lack of inner classes.. Thanks
Guillaume :)
Cheers,
On 4/29/07, Guillaume Laforge <glaforge@gmail.com> wrote:
> At the moment, it's not possible, but we'd like to extend Map and
> Closure coercion to support classes too, but it requires much more
> work than for interfaces (as we can easily use the Java proxy
> mechanism).
>
> On 4/29/07, Joan Pujol <joanpujol@gmail.com> wrote:
> > Hello,
> >
> > There's any syntax to extend a class overriding one method with a closure?
> >
> > I think that useful in some cases. For example I have a JTable with a
> > DefaultTableModel. The problem is that I need only to override the
> > isCellEditable from DefaultTableModel to return false... And I don't
> > like to create a normal class only for that.
> >
> > Cheers,
> >
> > --
> > Joan Jesús Pujol Espinar
> > http://www.joanpujol.cat
> > http://lujop.deviantart.com
> >
>
>
> --
> Guillaume Laforge
> Groovy Project Manager
> http://glaforge.free.fr/blog/groovy
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
Joan Jesús Pujol Espinar
http://www.joanpujol.cat
http://lujop.deviantart.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic