|
Groovy JDK |
Method Summary | |
---|---|
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(Action action)
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(JMenuItem item)
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(GString gstr)
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 .
|
Method Detail |
---|
public Component getAt(int index)
index
- the index of the menu component to get.public Iterator iterator()
public JMenu leftShift(Action action)
action
- an action to be added to the menu..public JMenu leftShift(Component component)
component
- a component to be added to the menu..public JMenu leftShift(JMenuItem item)
item
- an item to be added to the menu..public JMenu leftShift(String str)
str
- a String to be added to the menu..public JMenu leftShift(GString gstr)
gstr
- a GString to be added to the menu..public int size()
size()
method for JMenu
.
|
Groovy JDK |