public class BMenuBar extends WidgetContainer
Constructor and Description |
---|
BMenuBar()
Create a new BMenuBar.
|
Modifier and Type | Method and Description |
---|---|
void |
add(BMenu menu)
Add a BMenu to the end of the menu bar.
|
void |
add(BMenu menu,
int index)
Add a BMenu to the menu bar.
|
BMenu |
getChild(int i)
Get the i'th child of this container.
|
int |
getChildCount()
Get the number of children in this container.
|
java.util.Collection<Widget> |
getChildren()
Get a Collection containing all child Widgets of this container.
|
javax.swing.JMenuBar |
getComponent()
Get the java.awt.Component corresponding to this Widget.
|
void |
layoutChildren()
Layout the child Widgets.
|
void |
remove(Widget widget)
Remove a child Widget from this container.
|
void |
removeAll()
Remove all child Widgets from this container.
|
isOpaque, setOpaque
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible
addEventLink, addEventLink, removeEventLink
public javax.swing.JMenuBar getComponent()
Widget
getComponent
in class Widget
public void add(BMenu menu)
menu
- the BMenu to addpublic void add(BMenu menu, int index)
menu
- the BMenu to addindex
- the position at which to add itpublic int getChildCount()
getChildCount
in class WidgetContainer
public BMenu getChild(int i)
public java.util.Collection<Widget> getChildren()
getChildren
in class WidgetContainer
public void remove(Widget widget)
remove
in class WidgetContainer
public void removeAll()
removeAll
in class WidgetContainer
public void layoutChildren()
layoutChildren
in class WidgetContainer
Written by Peter Eastman.