Posted by pietblok
on February 1, 2009 at 2:02 AM PST
As you know, I'm having my own ideas as to what components in the hierarchy MouseWheelEvents should be dispatched.
Now there are two ways to make a Component eligable for receiving events:
2) enableEvents() (automatically enabled when invoking addXXXListener)
In my code I check if the number of MouseWheelListeners is greater than 0. But I would like to change that to a check if a component is enabled for a specific type of event. Is there some (public) method to find that out?
Reason I ask: when adding mouse wheel capability to my new control button, I first just enabled the mouse wheel event and overrode the ProcessMouseWheelEvent. Then I realized that that will break my MouseWheel listening check.