JMenuBar (Groovy JDK enhancements)

Package: javax.swing

## Class JMenuBar

- - ### Methods Summary

    Methods
    Return type | Name and parameters
    --- | ---
    `JMenu` | `getAt(int index)` Support the subscript operator for JMenuBar.
    `Iterator` | `iterator()` Returns an Iterator which traverses the JMenuBar one menu at a time.
    `JMenuBar` | `leftShift(JMenu menu)` Overloads the left shift operator to provide an easy way to add menus to a menuBar.
    `int` | `size()` Provide the standard Groovy `size()` method for `JMenuBar`.

  - #### Methods inherited from class java.awt.Container

    `clear`, `getAt`, `iterator`, `leftShift`, `size`

  - #### Methods inherited from class java.lang.Object

    `addShutdownHook`, `any`, `any`, `asBoolean`, `asType`, `collect`, `collect`, `collect`, `dump`, `each`, `eachMatch`, `eachMatch`, `eachWithIndex`, `every`, `every`, `find`, `find`, `findAll`, `findAll`, `findIndexOf`, `findIndexOf`, `findIndexValues`, `findIndexValues`, `findLastIndexOf`, `findLastIndexOf`, `findResult`, `findResult`, `findResult`, `findResult`, `getAt`, `getMetaClass`, `getMetaPropertyValues`, `getProperties`, `grep`, `grep`, `hasProperty`, `identity`, `inject`, `inject`, `inspect`, `invokeMethod`, `is`, `isCase`, `isNotCase`, `iterator`, `metaClass`, `print`, `print`, `printf`, `printf`, `println`, `println`, `println`, `putAt`, `respondsTo`, `respondsTo`, `setMetaClass`, `split`, `sprintf`, `sprintf`, `stream`, `tap`, `toString`, `use`, `use`, `use`, `with`, `with`, `withCloseable`, `withMethodClosure`, `withStream`, `withTraits`

- - ### Methods Detail

    - #### public JMenu getAt(int index)

      Support the subscript operator for JMenuBar.

      Parameters:
        `index` - the index of the menu to get
      Returns:
        the menu at the given index
      Since:
        1.6.4

    - #### public Iterator iterator()

      Returns an Iterator which traverses the JMenuBar one menu at a time.

      Returns:
        an Iterator for a JMenuBar
      Since:
        1.6.4

    - #### public JMenuBar leftShift(JMenu menu)

      Overloads the left shift operator to provide an easy way to add menus to a menuBar.

      Parameters:
        `menu` - a menu to be added to the menuBar.
      Returns:
        same menuBar, after the value was added to it.
      Since:
        1.6.4

    - #### public int size()

      Provide the standard Groovy `size()` method for `JMenuBar`.

      Returns:
        the menu count of the menuBar
      Since:
        1.6.4