Return type | Name and parameters |
---|---|
Component
|
getAt(int index)
Support the subscript operator for JMenu. |
Iterator
|
iterator()
Returns an Iterator which traverses the JMenu one component at a time. |
JMenu
|
leftShift(GString gstr)
Overloads the left shift operator to provide an easy way to add components to a menu. |
JMenu
|
leftShift(Component component)
Overloads the left shift operator to provide an easy way to add components to a menu. |
JMenu
|
leftShift(String str)
Overloads the left shift operator to provide an easy way to add components to a menu. |
JMenu
|
leftShift(Action action)
Overloads the left shift operator to provide an easy way to add components to a menu. |
JMenu
|
leftShift(JMenuItem item)
Overloads the left shift operator to provide an easy way to add components to a menu. |
int
|
size()
Provide the standard Groovy size() method for JMenu .
|
addShutdownHook
, any
, any
, asBoolean
, asType
, collect
, collect
, collect
, contains
, count
, dump
, each
, eachWithIndex
, equals
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, flatten
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, groupBy
, groupBy
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, iterator
, join
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, size
, split
, sprintf
, sprintf
, sum
, sum
, tap
, toArrayString
, toSpreadMap
, toString
, use
, use
, use
, with
, with
, withTraits
Support the subscript operator for JMenu.
index
- the index of the menu component to getReturns an Iterator which traverses the JMenu one component at a time.
Overloads the left shift operator to provide an easy way to add components to a menu.
gstr
- a GString to be added to the menu.Overloads the left shift operator to provide an easy way to add components to a menu.
component
- a component to be added to the menu.Overloads the left shift operator to provide an easy way to add components to a menu.
str
- a String to be added to the menu.Overloads the left shift operator to provide an easy way to add components to a menu.
action
- an action to be added to the menu.Overloads the left shift operator to provide an easy way to add components to a menu.
item
- an item to be added to the menu.Provide the standard Groovy size()
method for JMenu
.