Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] listeners pattern


The typed- vs. untyped-listeners difference is just a style choice.  Originally only the untyped listeners mechanism (ie.- Widget.addListener(int type, Listener listener)) was provided, but later the more conventional typed listeners api (eg.- addPaintListener(PaintListener)) was added because it seemed to be what many users were used to from other programming contexts.  The two approaches are functionally equivalent though.

Grant

Back to the top