Skip to main content

Creating the Composite Menu Component

Use Studio to create the composite menu component. Name the new component MenuComponent.cls. Here are the steps:

  1. Open Studio. Change to the namespace which contains HomePage.cls. On the Menu Bar click File–>New. This opens the New dialog:

    generated description: newcomposite1 20152

  2. Click the Zen category. Click New Zen Component and click OK. This launches the Zen Component Wizard.

    generated description: newcomposite2 20131

  3. Enter the following information:

    • Package Name: ZenTutorial.CustomComponents

    • Class Name: MenuComposite

    • Type: Composite

    • XML Namespace:

      This namespace information puts the new component into a separate namespace from the standard Zen components.

    Click Finish. The Studio Editor displays the following class definition:

    generated description: newcomposite3 20101

FeedbackOpens in a new tab