Register / Login
Win a copy of
Cross-Platform Desktop Applications: Using Node, Electron, and NW.js
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
OO, Patterns, UML and Refactoring
convinient design pattern
posted 5 years ago
I am currently searching a design
for a listener feature. I have many kind of gwt widgets. To each of them I need to add own listener but calling common function in runtime(adding listener).
I would like to have common interface with function e.g. addListener() and every implementing class
add own listener(clickHandler, valueChangeHandler,...) which call same function.
I don't know how it can be solved nicely. Could you recommend a design pattern for it.
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
Concurrency Problems - Booking
Design pattern/idiom for percentage choice in simulation
A picture is worth a thousand words
Builder & Strategy Patterns?