public interface IMenuBar extends IWidget, IMenuBarCommon
Modifier and Type | Method and Description |
---|---|
IMainMenu |
addMenu(IMainMenuDescriptor descriptor)
Adds a menu to the menu bar
|
IMainMenu |
addMenu(int index,
IMainMenuDescriptor descriptor)
Adds a menu to the menu bar at a given index
|
IMainMenu |
addMenu(int index,
java.lang.String name)
Adds a menu to the menu bar at a given index
|
IMainMenu |
addMenu(java.lang.String name)
Adds a menu to the menu bar
|
IMainMenu |
addMenu(java.lang.String name,
char mnemonic)
Adds a menu to the menu bar
|
java.util.List<IMenu> |
getMenus()
Gets a unmodifieable copy of the menus this menu bar contains
|
IMenuBarModel |
getModel()
Gets the model
|
boolean |
remove(IMenu menu)
Removes a menu from the menu bar
The menu will be disposed by that
|
void |
remove(int index)
Removes a menu from the menu bar at a given index
|
void |
removeAll()
Removes all menus from the mneu bar
|
void |
setModel(IMenuBarModel model)
Sets the model
|
dispose, getParent, getRoot, isDisposed
addDisposeListener, removeDisposeListener
getUiReference, isEnabled, setEnabled
void setModel(IMenuBarModel model)
model
- The model, must not be nullIMenuBarModel getModel()
IMainMenu addMenu(IMainMenuDescriptor descriptor)
descriptor
- The descriptor of the menuIMainMenu addMenu(int index, IMainMenuDescriptor descriptor)
index
- The index to at the menu atdescriptor
- The descriptor of the menuIMainMenu addMenu(java.lang.String name)
name
- The name of the menu to addIMainMenu addMenu(java.lang.String name, char mnemonic)
name
- The name of the menumnemonic
- The mnemonic of the mneuIMainMenu addMenu(int index, java.lang.String name)
index
- The index to at the menu atname
- The name of the menujava.util.List<IMenu> getMenus()
boolean remove(IMenu menu)
menu
- The menu to removevoid remove(int index)
index
- The index to remove the menu atvoid removeAll()
Siehe auch Jowidgets Nutzerhandbuch