Convenience method for registering a new listener with the specified
activation method to listen events generated by this component. If the
activation method does not have any arguments the event object will not
be passed to it when it's called.
This version of addListener
gets the name of the activation
method as a parameter. The actual method is reflected from
object
, and unless exactly one match is found,
java.lang.IllegalArgumentException
is thrown.
For more information on the inheritable event mechanism see the
com.vaadin.event.
Note: Using this method is discouraged because it cannot be checked
during compilation. Use
#addListener(Class,Object,Method) or
#addListener(String,Class,Object,Method)