|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BComponent
com.jmex.bui.BContainer
com.jmex.bui.BMenuBar
public class BMenuBar
Creates a simple MenuBar to be displayed along the top of a BWindow.
Example:
BWindow window = new BDecoratedWindow(style, null);
BMenuBar bar = window.getMenuBar();
BMenu fileMenu = new BMenu("File", window);
BMenuItem newItem = new BMenuItem("New Item", "NEW");
newItem.addListener(this);
fileMenu.addMenuItem(newItem);
BMenuItem exitItem = new BMenuItem("Exit", "EXIT");
exitItem.addListener(this);
fileMenu.addMenuItem(exitItem);
bar.add(fileMenu);
Styles:
menu {
border: 1 solid #999999;
background: solid #66666688;
}
menu:hover {
border: 1 solid #336699;
}
menubar {
background: solid #66666688;
}
menuitem {
border: 1 solid #999999;
background: solid #66666688;
}
menuitem:hover {
border: 1 solid #336699;
}
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jmex.bui.BContainer |
|---|
BContainer.ChildOp |
| Field Summary |
|---|
| Fields inherited from class com.jmex.bui.BContainer |
|---|
_children, _layout |
| Fields inherited from class com.jmex.bui.BComponent |
|---|
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Constructor Summary | |
|---|---|
BMenuBar(java.lang.String name)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getDefaultStyleClass()
Returns the default stylesheet class to be used for all instances of this component. |
| Methods inherited from class com.jmex.bui.BContainer |
|---|
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, getNextFocus, getPreviousFocus, layout, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setLayoutManager, setVisible, validate, wasAdded, wasRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BMenuBar(java.lang.String name)
| Method Detail |
|---|
protected java.lang.String getDefaultStyleClass()
BComponent
getDefaultStyleClass in class BContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||