PPT Slide
Event Listeners
(interfaces)
Event Adapters
(inheritance)
Semantic Events
Costs Benefits
Must code all
methods; wasteful
no-ops result
Uses up single
inheritance
opportunity
Simplifies
event handling
Loss of
granular
control;
linear code
Keep all
events in
single class
Good abstraction;
override those
methods
you need
Event Handling Options: How to Decide
Previous slide
Next slide
Back to first slide
View graphic version