• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Class architecture / Pattern for Wizards

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear David Kane:
Welcome !
I am desigining a wizard that has multiple execution-paths / branching-paths.I wish to know whether any design pattern exists for Wizard creation and control related issues.
and specifically about:
1. What are the collaborating classes to be used & relationship?
2. Who should create the wizard frame ?
3. Who should listen for "Back" "Next" "Cancel" Buttons ?
4. Who should decide what is the next/prev panel to show
5. Who should track the current state of the wizard-process ?
Looking fwd for your suggestions.
Thank you,
Prem
 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Command and State patterns immediately come to mind. Depending on your situation you may use a Bridge/Adapter etc also. Factory patterns are omni present in such situations.
Study the patterns and you shall find your answer.
HTH
Sanjay
    Bookmark Topic Watch Topic
  • New Topic