@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, wait
addMenu, addMenu, addMenu, addMenu, addMenu, getMenus, getModel, remove, remove, removeAll, setModel
dispose, getParent, getRoot, isDisposed
addDisposeListener, removeDisposeListener
getUiReference, isEnabled, setEnabled
public final void addMenu(JoMainMenu mainMenu)
public final void addMenu(int index, JoMainMenu mainMenu)
public java.util.List<IMenu> getMenus()
IMenuBar
public boolean remove(IMenu menu)
IMenuBar
public void remove(int index)
IMenuBar
public void removeAll()
IMenuBar
public IMainMenu addMenu(java.lang.String name)
IMenuBar
public IMainMenu addMenu(java.lang.String name, char mnemonic)
IMenuBar
public IMainMenu addMenu(int index, java.lang.String name)
IMenuBar
public IMainMenu addMenu(IMainMenuDescriptor descriptor)
IMenuBar
public IMainMenu addMenu(int index, IMainMenuDescriptor descriptor)
IMenuBar
public void setModel(IMenuBarModel model)
IMenuBar
public IMenuBarModel getModel()
IMenuBar
public final boolean isInitialized()
public IWidget getRoot()
IWidget
public void addDisposeListener(IDisposeListener listener)
IDisposeObservable
addDisposeListener
in interface IDisposeObservable
listener
- The listener to addpublic void removeDisposeListener(IDisposeListener listener)
IDisposeObservable
removeDisposeListener
in interface IDisposeObservable
listener
- The listener to removepublic void dispose()
IWidget
public boolean isDisposed()
IWidget
isDisposed
in interface IWidget
public void setEnabled(boolean enabled)
IWidgetCommon
setEnabled
in interface IWidgetCommon
enabled
- The enabled state to setpublic boolean isEnabled()
IWidgetCommon
isEnabled
in interface IWidgetCommon
public final java.lang.Object getUiReference()
IWidgetCommon
getUiReference
in interface IWidgetCommon
Siehe auch Jowidgets Nutzerhandbuch