I was wondering if we can somehow bind a set of Java events with the occurrence of a particular event?
For example, if a list item gets selected / or if a radio button gets selected, we want to perform a number of operations. One way is to take care of all the events (through listeners) that could selected the item and/or radio button.
The other more sophisticated way can be binding of the desired operations with the selection of the component. So that, once desired operations are implemented and registered with the (say) component's selection event, the programmer need not to worry any more.
There must be some binding mechanism in Java.
Hope that I am able to explain what I am looking for.
Thanks in advance.