• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Class architecture / Pattern for Wizards

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic