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 |
---|---|
protected void |
createImplMenu()
Creates all necessary new implementation instances for this GralMenu.
|
private void |
createImplMenu(java.lang.Object parentMenu,
java.util.Map<java.lang.String,GralMenu.MenuEntry> menusP) |
protected abstract void |
createImplMenuItem(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()
Activates programmatically the context menu, as alternative to user handling.
|
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 mngprotected final void createImplMenu()
private final void createImplMenu(java.lang.Object parentMenu, java.util.Map<java.lang.String,GralMenu.MenuEntry> menusP)
protected abstract void createImplMenuItem(java.lang.Object oParentMenu, GralMenu.MenuEntry gralEntry)
oParentMenu
- gralEntry
- public abstract void setVisible()
public abstract java.lang.Object getMenuImpl()