public class AwtMenu extends GralMenu._GraphicImpl
Modifier and Type | Field and Description |
---|---|
private java.awt.Menu |
menuAwt |
private java.awt.MenuBar |
menuBar |
widgg
Constructor and Description |
---|
AwtMenu(GralWidget widgg,
java.awt.Component parent,
GralMng mng) |
AwtMenu(GralWidget widgg,
java.awt.Frame window,
GralMng mng) |
Modifier and Type | Method and Description |
---|---|
void |
createImplMenuItem(java.lang.Object oParentMenu,
GralMenu.MenuEntry gralEntry)
Creates the implementation for a menu node or entry.
|
java.awt.Menu |
getMenuImpl()
Returns the implementation instance for the menu.
|
void |
setVisible()
Activates programmatically the context menu, as alternative to user handling.
|
createImplMenu
private final java.awt.Menu menuAwt
private final java.awt.MenuBar menuBar
public AwtMenu(GralWidget widgg, java.awt.Component parent, GralMng mng)
public AwtMenu(GralWidget widgg, java.awt.Frame window, GralMng mng)
public void createImplMenuItem(java.lang.Object oParentMenu, GralMenu.MenuEntry gralEntry)
createImplMenuItem
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 void setVisible()
GralMenu._GraphicImpl
setVisible
in class GralMenu._GraphicImpl
public java.awt.Menu getMenuImpl()
GralMenu._GraphicImpl
getMenuImpl
in class GralMenu._GraphicImpl