Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.0
-
None
Description
There is no means to determine which events an object can accept closures for. As an example the snippet <code>button.actionPerformed = { doButtonAction())</code> would require the user to know that one of the listener methods on JButton is an ActionListener with an actionPerfomed method, but there is no programatic way to introspect that pseudo property.
The soluition would be to extend MetaMethod with the needed fields to provide sensible information about the event, and enumerate that in the MetaClass via a getEvents() method.
Implementation forthcoming...