Latest News

 










Event Adapters

Previous slide Next slide Back to first slide View graphic version


Event Adapters


 
My other sites

Latest News

 










Event Adapters

  • Interfaces when implemented need an implementation for all their methods.

  • Adapter classes save programmer’s time by providing an empty implementation of Listener’s methods.

  • To use an Adapter you need to subclass it and override only the methods which you wish to use.

  • You can define an Adapter class :

    • as an inner class,
    • as an anonymous inner class,
    • as an external class.

Previous slide Next slide Back to first slide View graphic version