On the realization of a Listener

1 Any class can implement a Listener

As long as the method to achieve Listener declared in the class, any class can implement a Listener.

2 Any Listener class implements the Listener is a

In this case, the class can be registered to a view, is triggered when users view a certain action, the method of the Listener declaration will call.

 

Guess you like

Origin www.cnblogs.com/hustdc/p/11440842.html