|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.WidgetContainer
buoy.widget.BMenuBar
public class BMenuBar
A BMenuBar is a WidgetContainer corresponding to the menu bar of a window.
| Constructor Summary | |
|---|---|
BMenuBar()
Create a new BMenuBar. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class buoy.widget.WidgetContainer |
|---|
isOpaque, setOpaque |
| Methods inherited from class buoy.widget.Widget |
|---|
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible |
| Methods inherited from class buoy.event.EventSource |
|---|
addEventLink, addEventLink, removeEventLink |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BMenuBar()
| Method Detail |
|---|
public javax.swing.JMenuBar getComponent()
Widget
getComponent in class Widgetpublic void add(BMenu menu)
menu - the BMenu to add
public 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 WidgetContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||