<menuItemGroup> Element

This element contains information for a grouping on the menu.  The commands added by this element can only be added and removed from the menu as a group.

A grouping is a set of two or more items which are related and their selection is mutually exclusive within EditLive! for Java.  For example, the Source View and Design View commands exist in a menuItemGroup.

Element Tree Structure

<editLiveForJava>
    <menuBar>
        <menu>
            <menuItemGroup>
            

<editLiveForJava>
     ...
     <menuBar>
          <menu>
               <menuItemGroup ... />
          </menu>
     </menuBar>
     ...
</editLiveForJava>

Required Attributes

Attribute Description
name This attribute gives the name for the command group.  It must be one of the following:
  • mnuSourceView - The Design View and HTML View commands.
  • mnuFrameView - The Browser View and Window View commands.
  • mnuList - The Ordered List and Unordered List commands.
  • mnuAlign - The Align Left, Align Centre and Align Right commands.
  • mnuScript - The Subscript and Superscript commands.

Example

The following example demonstrates how to add the Design View and HTML View commands to the menu bar.

<editLiveForJava>
    ...
    <menuBar>
        <menu name="View">
            <menuGroupItem name="mnuSourceView"/>
        </menu>
    </menuBar>
    ...
</editLiveForJava>

Remarks

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

The <menuGroupItem> element must be a complete tag, it cannot contain a tag body.  Therefore the tag must be closed in the same line.  See the example below:

    <menuGroupItem name=... />

See Also