Wicket is much like swing when it comes to using anonymous inner classes...so
here is simple wicket example with is very common to wicket; This Link
object is a common component available in wicket...just trying to show the
structure.
class abstract Link extends Component {
public Link(String id) {
super(id)
}
public abstract onClick();
}
Now you web application code using Link;
Link link = new Link("linkid") {
public void onClick() {
// write code logic code here when a html href is clicked.
}
});
So I understand that jruby can create a class impl at any time...but can it
handle the above situation...the difference being the impl is an abstract
class.
By the way Charles, great work on jruby...I think you are really opening up
java developers to ruby.
Charles Oliver Nutter-2 wrote:
>
> mnwicket wrote:
>> So I'm a little confused....does jruby support anonymous inner classes?
>>
>> I'm interested in getting wicket working with jruby on rails.
>
> What does wicket need with anonymous inner classes?
>
> I suppose the answer is "yes", since you can create a class impl at any
> time.
>
> - Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
--
View this message in context:
http://www.nabble.com/jruby-and-anonymous-inner-classes-tp16828974p16850455.html
Sent from the JRuby - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email