public class JMenuBuilder extends java.lang.Object implements ComponentBuilder<javax.swing.JMenu>
JMenu
. This class should be used as a prototype.Constructor and Description |
---|
JMenuBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ComponentBuilder<?> factory)
Add a child to the
Component we are building. |
javax.swing.JMenu |
instance()
Create and return the
Component . |
void |
setMnemonic(java.lang.String text)
Set the mnemonic of the
JMenu . |
void |
setText(java.lang.String text)
Set the label of the
JMenu |
java.lang.String |
toString() |
public void setText(java.lang.String text)
JMenu
public void setMnemonic(java.lang.String text)
JMenu
.text
- The name of a constant on the KeyEvent class.public void addChild(ComponentBuilder<?> factory)
ComponentBuilder
Component
we are building.addChild
in interface ComponentBuilder<javax.swing.JMenu>
public javax.swing.JMenu instance()
ComponentBuilder
Component
.instance
in interface ComponentBuilder<javax.swing.JMenu>
public java.lang.String toString()
toString
in class java.lang.Object