[java-gnome-hackers] First pass at libglade signal connecting
Brought to you by:
afcowie
From: Tom B. <Tom...@Su...> - 2002-11-29 07:21:37
|
The current build has a new example, src/examples/glade/Example1.java, which demonstrates how a simple applet can be connected with a signal handler. Check out the SignalHandler class, as it uses the java.lang.reflect.Proxy class to create event listener implementations on the fly; I've always wanted to kick the tires on that class, and found it surprisingly easy to use. The problem I'm facing is that the new event mappings squish all signals into one listener interface method, so there's no way currently for libglade to be able to separate them again, unless a large table gets defined that maps event types back to signals. Any ideas on how I can map this efficiently? Otherwise it looks like going back to using GObject.addEventHandler may make more sense. Tom |