<submenu> Element

This element contains information for a submenu item which may be placed within a menu.  The Font, Font Size and Style submenus are an example of this.

Element Tree Structure

<editLiveForJava>
    <menuBar>
        <menu>
            <submenu>

<editLiveForJava>
     ...
     <menuBar>
          <menu>
               <submenu>
                     <!--submenu configuration settings-->
               </submenu>
          </menu>
     </menuBar>
     ...
</editLiveForJava>

Required Attributes

Attribute Description
name This attribute specifies the name of the submenu.  It must be one of the following:
  • mnuFontFace - The Font submenu.
  • mnuFontSize - The Size submenu.
  • mnuStyle - The Style submenu.

Child Elements

Element Description
<menuItem> This element contains information for an item on the menu (eg. font items or font size items).

Example

The following example demonstrates how to include the Font submenu in the Format menu. 

<editLiveForJava>
    ...
    <menuBar>
        <menu name="Format">
            <submenu name="mnuFontFace">
                ...
            </submenu>
        </menu>
    </menuBar>
    ...
</editLiveForJava>

Remarks

The <submenu> element can appear multiple times within the <menu> element.

See Also