public abstract class GralMenu._GraphicImpl extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected GralWidget |
widgg |
Modifier | Constructor and Description |
---|---|
protected |
_GraphicImpl(GralWidget widgg)
Creates a new menu wrapper.
|
Modifier and Type | Method and Description |
---|---|
void |
_implMenu()
Creates all necessary new implementation instances for this GralMenu.
|
private void |
_implMenu(java.lang.Object parentMenu,
java.util.Map<java.lang.String,GralMenu.MenuEntry> menusP) |
protected abstract void |
_implMenuItem(java.lang.Object oParentMenu,
GralMenu.MenuEntry gralEntry)
This method should be implemented in the implementation layer.
|
abstract java.lang.Object |
getMenuImpl()
Returns the implementation instance for the menu.
|
abstract void |
setVisible()
Deprecated.
The
GralWidget.getContextMenu() creates a menu for the graphic implementation layer widget
and assigns it to the widget as GralMenu. The GralMenu has the association widgg to the widget already.
In the adequate case GralWindow.getMenuBar() adds the menu to the window and stores the window's reference
in widgg . That is proper to use. This method was create before the widgg are set
in this constructor. |
protected final GralWidget widgg
protected _GraphicImpl(GralWidget widgg)
widgg
- The gral widget which is the parent. If it is a context menu it is that
widget where GralWidget.getContextMenu()
was called.
If it is is a menu bar, the window is used.mng
- The mngpublic final void _implMenu()
private final void _implMenu(java.lang.Object parentMenu, java.util.Map<java.lang.String,GralMenu.MenuEntry> menusP)
protected abstract void _implMenuItem(java.lang.Object oParentMenu, GralMenu.MenuEntry gralEntry)
oParentMenu
- gralEntry
- @Deprecated public abstract void setVisible()
GralWidget.getContextMenu()
creates a menu for the graphic implementation layer widget
and assigns it to the widget as GralMenu. The GralMenu has the association widgg
to the widget already.
In the adequate case GralWindow.getMenuBar()
adds the menu to the window and stores the window's reference
in widgg
. That is proper to use. This method was create before the widgg
are set
in this constructor.widgg
of the constructor.
Check what is happen. Therefore:widggMenu
- the widget can be used to add any GralWidget.setContentInfo(Object)
etc.
It is provided in the action method.name
- sMenuPath
- action
- public abstract java.lang.Object getMenuImpl()