The Camtasia Studio video content presented here requires a more recent version of the Adobe Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

Defining a design pattern

  1. Select a class from the diagram toolbar and click it on the diagram
  2. Name it as Form and enter getFormID, enter and exit as operation
  3. Right click on Form class and select Stereotypes > Interface from the pop-up menu
  4. Press Form class's fit size button to adjust its size
  5. Click on Form's resource icon Realization->Class and drag it to form another class
  6. Name the newly created class as SubForm
  7. Right click on SubForm class and select Related Elements > Realize all Interfaces from the pop-up menu
  8. Right click on SubForm class and Stereotypes > Stereotypes... from the pop-up menu
  9. Select PTN Cloneable from Stereotypes tab in Class Specification dialog box and click OK
  10. Select Form class and Subform class with the mouse, right click on Form class and select Define Design Pattern... from the pop-up menu
  11. Click OK in Define Design Pattern dialog box

Applying a design pattern

  1. Right click on the diagram background select Utilities > Apply Design Pattern... from the pop-up menu
  2. Click Yes in Apply Design Pattern dialog box
  3. Click Generic Webpage Pattern in Design Pattern dialog box, click PLUS button and then clone... from the pop-up menu
  4. Enter 1 in Input dialog box and click OK
  5. Click Form class and enter FeedbackForm in Form
  6. Click SubForm, enter GeneralFeedbackForm in SubForm and enter CustomerFeedbackForm in SubForm 2
  7. Click OK in Design Pattern dialog box
  8. Adjust the location of FeedvackForm class, CustomerFeedbackForm class and GeneralFeedbackForm and their connectors