Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

convinient design pattern  RSS feed

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!