8. menuItems
Prev | Chapter 4. Reference | Next

## 8. menuItems

    <menuItems
      name = NMTOKEN
    >
      Content: class [ property ]*
    </menuItems>

    <class>
      Content: Java class name
    </class>

    <property
      name = NMTOKEN matching [_a-zA-Z][_a-zA-Z0-9]*
      type = (boolean|byte|char|short|int|long|float|double|
              String|Color|Font)
      value = string
    />

Specifies a dynamic set of menu items, that is, a Java™ Object implementing interface `com.xmlmind.xmleditapp.kit.AppMenuItems`.

The class implementing interface `com.xmlmind.xmleditapp.kit.AppMenuItems` is specified by the `class` child element.

`Property` child elements may be used to parametrize a newly created part. See bean properties.

Attributes:

name

  Required. Unique name identifying the dynamic set of menu items in this GUI specification.

Examples:

    <menuItems name="recentFilesMenuItems">
      <class>com.xmlmind.xmleditapp.kit.part.RecentFilesMenuItems</class>
    </menuItems>

    <menuItems name="configSpecificMenuItems">
      <class>com.xmlmind.xmleditapp.kit.part.ConfigSpecificMenuItems</class>
    </menuItems>

Prev | Up | Next
7. menuBar | Home | 9. openedDocumentHook