@Deprecated public class JoMenuBar extends java.lang.Object implements IMenuBar
| Constructor and Description |
|---|
JoMenuBar()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDisposeListener(IDisposeListener listener)
Deprecated.
Adds a dispose listener
|
IMainMenu |
addMenu(IMainMenuDescriptor descriptor)
Deprecated.
Adds a menu to the menu bar
|
IMainMenu |
addMenu(int index,
IMainMenuDescriptor descriptor)
Deprecated.
Adds a menu to the menu bar at a given index
|
void |
addMenu(int index,
JoMainMenu mainMenu)
Deprecated.
|
IMainMenu |
addMenu(int index,
java.lang.String name)
Deprecated.
Adds a menu to the menu bar at a given index
|
void |
addMenu(JoMainMenu mainMenu)
Deprecated.
|
IMainMenu |
addMenu(java.lang.String name)
Deprecated.
Adds a menu to the menu bar
|
IMainMenu |
addMenu(java.lang.String name,
char mnemonic)
Deprecated.
Adds a menu to the menu bar
|
void |
dispose()
Deprecated.
Disposes the widgets.
|
java.util.List<IMenu> |
getMenus()
Deprecated.
Gets a unmodifieable copy of the menus this menu bar contains
|
IMenuBarModel |
getModel()
Deprecated.
Gets the model
|
IWidget |
getParent()
Deprecated.
Gets the parent of the widget
|
IWidget |
getRoot()
Deprecated.
Gets the root widget of the widget
If the widget is a composed widget, the root widget
of the composed widget will be returned.
|
java.lang.Object |
getUiReference()
Deprecated.
Gets the reference to the ui implementation of this widget.
|
boolean |
isDisposed()
Deprecated.
Checks if a widget is disposed
|
boolean |
isEnabled()
Deprecated.
Gets the enabled state
|
boolean |
isInitialized()
Deprecated.
|
boolean |
remove(IMenu menu)
Deprecated.
Removes a menu from the menu bar
The menu will be disposed by that
|
void |
remove(int index)
Deprecated.
Removes a menu from the menu bar at a given index
|
void |
removeAll()
Deprecated.
Removes all menus from the mneu bar
|
void |
removeDisposeListener(IDisposeListener listener)
Deprecated.
Removes a dispose listener
|
void |
setEnabled(boolean enabled)
Deprecated.
Sets the widget enabled
|
void |
setModel(IMenuBarModel model)
Deprecated.
Sets the model
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMenu, addMenu, addMenu, addMenu, addMenu, getMenus, getModel, remove, remove, removeAll, setModeldispose, getParent, getRoot, isDisposedaddDisposeListener, removeDisposeListenergetUiReference, isEnabled, setEnabledpublic final void addMenu(JoMainMenu mainMenu)
public final void addMenu(int index,
JoMainMenu mainMenu)
public java.util.List<IMenu> getMenus()
IMenuBarpublic boolean remove(IMenu menu)
IMenuBarpublic void remove(int index)
IMenuBarpublic void removeAll()
IMenuBarpublic IMainMenu addMenu(java.lang.String name)
IMenuBarpublic IMainMenu addMenu(java.lang.String name, char mnemonic)
IMenuBarpublic IMainMenu addMenu(int index, java.lang.String name)
IMenuBarpublic IMainMenu addMenu(IMainMenuDescriptor descriptor)
IMenuBarpublic IMainMenu addMenu(int index, IMainMenuDescriptor descriptor)
IMenuBarpublic void setModel(IMenuBarModel model)
IMenuBarpublic IMenuBarModel getModel()
IMenuBarpublic final boolean isInitialized()
public IWidget getRoot()
IWidgetpublic void addDisposeListener(IDisposeListener listener)
IDisposeObservableaddDisposeListener in interface IDisposeObservablelistener - The listener to addpublic void removeDisposeListener(IDisposeListener listener)
IDisposeObservableremoveDisposeListener in interface IDisposeObservablelistener - The listener to removepublic void dispose()
IWidgetpublic boolean isDisposed()
IWidgetisDisposed in interface IWidgetpublic void setEnabled(boolean enabled)
IWidgetCommonsetEnabled in interface IWidgetCommonenabled - The enabled state to setpublic boolean isEnabled()
IWidgetCommonisEnabled in interface IWidgetCommonpublic final java.lang.Object getUiReference()
IWidgetCommongetUiReference in interface IWidgetCommonSiehe auch Jowidgets Nutzerhandbuch