This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection dialog and MVC

 
Chiji Nwankwo
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have read a couple of interesting posts on this forum regarding how different people have used MVC and have found them very helpful and insightful, giving me a very clear view of the bigger picture.
I have 3 sets of windows (2 dialogs and a frame) on the client side of the application.
The first dialog is used to select the connection type before the main window is opened. When the confirm button is clicked in the main window, I display another dialog, which contains a summary of the flight details selected by the user. At this point the user will be given the choice to either 'book' or 'cancel' a booking.
How do I map this construct into MVC? At the moment the 3 parts that make up my GUI are all seperate classes.
Please advise and let me know whether I'm completely off track.
Thanks,
Chiji
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you could have three controllers, or one controller. I would prefer one controller.
Or for the first dialog have the main application be the controller for it, and then a seperate controller for the other two.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic