Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design Pattern question (in hindsight)
Message
 
To
18/04/1999 20:21:58
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00209551
Message ID:
00209939
Views:
32
>For example: I have a container superclass that I subclass into containers for each wizard step. I add the controls for each step to the container subclass. (I then have a pageframe class that subclasses the step containers.) In this case the container superclass just sets the layout information. I don't add any custom properties or methods. Is this an example (even if a bad one) of a Facade structural pattern? I looked at Template, but to me it's not a behavioral pattern.

Speaking purely from "book-learning", this sounds something like a State pattern. Each step in your wizard is a different state and you have a different class of your container for each step. The theory is that this pattern is a way to create objects whose behavior is state-dependant without using conditional statements. (yeah right!) HTH.
----------
Mark Bucciarelli
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform