public class SwtMenu extends GralMenu._GraphicImpl
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.widgets.Shell |
window |
widgg
Modifier | Constructor and Description |
---|---|
protected |
SwtMenu(GralMenu gralMenu,
GralWidget widgg,
org.eclipse.swt.widgets.Control parent)
Constructor of a context menu of any widget.
|
protected |
SwtMenu(GralMenu gralMenu,
GralWidget widgg,
org.eclipse.swt.widgets.Shell window)
Constructor for the menu bar of a window.
|
Modifier and Type | Method and Description |
---|---|
void |
_implMenuItem(java.lang.Object oParentMenu,
GralMenu.MenuEntry gralEntry)
Creates the implementation for a menu node or entry.
|
org.eclipse.swt.widgets.Menu |
getMenuImpl()
Returns the implementation instance for the menu.
|
void |
setVisible()
Adds with a given widget.
|
_implMenu
protected final org.eclipse.swt.widgets.Shell window
protected SwtMenu(GralMenu gralMenu, GralWidget widgg, org.eclipse.swt.widgets.Control parent)
sName
- parent
- mng
- protected SwtMenu(GralMenu gralMenu, GralWidget widgg, org.eclipse.swt.widgets.Shell window)
sName
- window
- mng
- public void _implMenuItem(java.lang.Object oParentMenu, GralMenu.MenuEntry gralEntry)
_implMenuItem
in class GralMenu._GraphicImpl
oParentMenu
- return value of getMenuImpl()
or the GralMenu.MenuEntry#menuImpl
, that is a menu node.gralEntry
- The entry in the menu treepublic org.eclipse.swt.widgets.Menu getMenuImpl()
GralMenu._GraphicImpl
getMenuImpl
in class GralMenu._GraphicImpl
public void setVisible()
GralMenu._GraphicImpl
GralMenu._GraphicImpl.widgg
of the constructor.
Check what is happen. Therefore:setVisible
in class GralMenu._GraphicImpl