Hi
According t what I have read about MVC patter I see three options to implement assignment:
1) Use famous observer
pattern
2) Make POJO controllers. Controller would implement
Then I would define method in view
In this method for every gui element I need I would call
where
is my controller. Then in controller in method
I would make my choices according to action commands.
3) Make POJO controllers. In controller I would define private classes (each implementing ActionListener or WindowEvent etc) implementing calls to businesses logic . In view I would define getters returning gui elements I'am interested in. In controller I would call those getters. On returned GUI elements I would call
passing already defined objects <ActionListener>.
I personally think 3 version is the most clean but I'm not really sure is it acceptable from exterminator point of view. What do you think of that ?
Jacek
a) sorry for my English
b) I'm not strict GUI developer so sorry if you consider my questions silly