public class SwtMenu extends GralMenu._GraphicImpl
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
SwtMenu.ActionUserMenuItem
This class wraps the
GralUserAction for a menu action in Swt. |
| Modifier and Type | Field and Description |
|---|---|
private Menu |
menuSwt
It is the first level of menu hierarchy.
|
protected Shell |
window |
widgg| Modifier | Constructor and Description |
|---|---|
protected |
SwtMenu(GralMenu gralMenu,
GralWidget widgg,
Control swtWidg)
Constructor of a context menu of any widget.
|
protected |
SwtMenu(GralWindow widgg,
GralMenu gralMenu,
Shell window)
Constructor for the menu bar of a window.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createImplMenuItem(java.lang.Object oParentMenu,
GralMenu.MenuEntry gralEntry)
Creates the implementation for a menu node or entry.
|
Menu |
getMenuImpl()
Returns the implementation instance for the menu.
|
void |
setVisible()
Activates programmatically the context menu, as alternative to user handling.
|
createImplMenuprotected final Shell window
private final Menu menuSwt
protected SwtMenu(GralMenu gralMenu, GralWidget widgg, Control swtWidg)
sName - parent - mng - protected SwtMenu(GralWindow widgg, GralMenu gralMenu, Shell window)
sName - window - mng - public void createImplMenuItem(java.lang.Object oParentMenu,
GralMenu.MenuEntry gralEntry)
createImplMenuItem in class GralMenu._GraphicImploParentMenu - return value of getMenuImpl() or the GralMenu.MenuEntry#menuImpl, that is a menu node.gralEntry - The entry in the menu treepublic void setVisible()
GralMenu._GraphicImplsetVisible in class GralMenu._GraphicImplpublic Menu getMenuImpl()
GralMenu._GraphicImplgetMenuImpl in class GralMenu._GraphicImpl