7. menuItems
Prev | Chapter 4. Reference | Next

## 7. menuItems

    <menuItems
      name = NMTOKEN
      count = strictly positive int
    >
      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.

count

  The fixed number of items which will be dynamically added to this part. This attribute must not be specified for truly dynamic set of menu items.

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
6. menuBar | Home | 8. openedDocumentHook