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, setOpaqueaddEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisibleaddEventLink, addEventLink, removeEventLinkpublic javax.swing.JMenuBar getComponent()
WidgetgetComponent in class Widgetpublic 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 WidgetContainerpublic BMenu getChild(int i)
public java.util.Collection<Widget> getChildren()
getChildren in class WidgetContainerpublic void remove(Widget widget)
remove in class WidgetContainerpublic void removeAll()
removeAll in class WidgetContainerpublic void layoutChildren()
layoutChildren in class WidgetContainerWritten by Peter Eastman.