buoy.widget
Class BMenuBar
A BMenuBar is a WidgetContainer corresponding to the menu bar of a window.
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.
|
Iterator | getChildren() - Get an Iterator listing all child Widgets.
|
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.
|
addEventLink , dispatchEvent , getBackground , getBounds , getComponent , getCursor , getFont , getMaximumSize , getMinimumSize , getName , getParent , getPreferredSize , hasFocus , isEnabled , isFocusable , isVisible , repaint , requestFocus , setBackground , setCursor , setEnabled , setFocusable , setFont , setName , setVisible |
BMenuBar
public BMenuBar()
Create a new BMenuBar.
add
public void add(BMenu menu)
Add a BMenu to the end of the menu bar.
add
public void add(BMenu menu,
int index)
Add a BMenu to the menu bar.
menu
- the BMenu to addindex
- the position at which to add it
getChild
public BMenu getChild(int i)
Get the i'th child of this container.
layoutChildren
public void layoutChildren()
Layout the child Widgets. This may be invoked whenever something has changed (the size of this
WidgetContainer, the preferred size of one of its children, etc.) that causes the layout to no
longer be correct. If a child is itself a WidgetContainer, its layoutChildren() method will be
called in turn.
- layoutChildren in interface WidgetContainer
Written by Peter Eastman.