Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design Pattern question (in hindsight)
Message
From
18/04/1999 20:21:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Design Pattern question (in hindsight)
Miscellaneous
Thread ID:
00209551
Message ID:
00209551
Views:
73
I have a search and replace wizard class library that comprises several classes and subclasses. It's an old (and working) routine. Now, I'm trying to model it (yeah, yeah, I know :), and am driving myself nuts trying to identify what patterns things *might* be.

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.

Another example: I have a listbox subclass that adds a custom property called "PopulateList". This subclass calls PopulateList in the Init, but it doesn't code the Populate list. I let subclasses control that. Is this an example of a Template Method design pattern?

TIA for comments (and patience :)
Next
Reply
Map
View

Click here to load this message in the networking platform