on 09-06-2006 6:25 AM
Hi Friends,
Is there any difference between WD event and Method or it is same?
Hi,
Event will be in Component Controller not in view controller.
U can handle this event at runtime using Event-handler in any view.
This is not possible in an method.
This can be used to write a seperate code i.e. Funtionality and used where ever required.
Regards,
Vijayakhanna Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nav,
WD is irrelevant here. The same concepts are applied in many (if not all) frameworks/libraries.
Methods are "active" -- you explicitly know sole traget and "actively" execute method on it.
With events you do not know target or targets, and just brodcast away a notification. Anyone interested may subscribe to event and handle it in its own way.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I assume that WD Event is a Event Handler.
Basically, a Event Handler is a method.
But, the difference is that Event Handler is invoked on an
Event of the developer or the end user where as a method you need to invoke in your code. You need to call the method explicitly.
Hope it helps you.
Regards,
Maheswaran.B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.