File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes convinient design pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "convinient design pattern" Watch "convinient design pattern" New topic

convinient design pattern

manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110

I am currently searching a design pattern 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 should 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.

Thanks, mc
I agree. Here's the link:
subject: convinient design pattern
It's not a secret anymore!