posted 19 years ago
Hello,
one more post on MVC. I identified several options to implement hooks for View->Controller events.
use ActionListener - common solutionuse Action - more usable IMO, since we can attach Action to many components(menu, buttons) and events(keystroke)use CustomListener - not tied to swing, but definitely tied to custom logic(custom event types, constants etc.)
I'm considering to go with Action solution, but in such case Actions are instantiated in Controller, and Controller specifies Action name, icon etc. - properties, which are gui specific. Any comments? Thanks.