• 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

any Design Patterns for Wizzzzzard ?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I All:
I would like to know whether any design pattern exists for Wizard creation and control

1. What are the collaborating classes ?
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 ?

Thank you,
Prem
------------------
pondyprem@yahoo.com
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
Once I applied "STATE PATTERN" for the same case and was just great. When I had to add more options, just I had to create
another state and that's it.
SALUT

Originally posted by Pondy Prem:
I All:
I would like to know whether any design pattern exists for Wizard creation and control

1. What are the collaborating classes ?
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 ?

Thank you,
Prem


 
Pondy Prem
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thank you monofremix for the info.
I would like to know how to manage the Panels ... in the case where there are multiple-branching-paths based on the options that the user chooses at intermediate screens.
.. and everyscreen need to save/retrieve data from database too (i.e: dynamic ).
I would be glad if you/someone could enlighten me about the responsibility allocation.
Specifically which class will decide about the screen-to-show-next.
Thank you
Prem
------------------
pondyprem@yahoo.com
 
monofremix
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Prem
Try with the following:
Use the State Pattern for controling each state [back, next buttons} and a CardLayoutPanel object (for each panel)
Each state will notify the CardLayoutPanel to show the right option
There will be just one panel including the NEXT and BACK button wich implement the ActionListener interface
Check this link for more informatio about this pattern"
http://www.javaworld.com/jw-08-1997/jw-08-stated.html
This the only help I can give you for now.

SALUT
 
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