public class AWTMenuCreator extends AbstractAWTMenuCreator<Menu>
Menu with menu items from a ShadowMenu.
Unfortunately, the AWTMenuBarCreator, AWTMenuCreator and
AWTPopupMenuCreator classes must all exist and replicate some code,
because MenuBar, MenuItem and PopupMenu do not share
a common interface for operations such as Menu.add(java.awt.MenuItem).
This class is called AWTMenuCreator rather than simply
MenuCreator to avoid a name clash with the toplevel
MenuCreator interface.
| Constructor and Description |
|---|
AWTMenuCreator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLeafToTop(ShadowMenu shadow,
Menu target) |
protected Menu |
addNonLeafToTop(ShadowMenu shadow,
Menu target) |
protected void |
addSeparatorToTop(Menu target) |
addLeafToMenu, addNonLeafToMenu, addSeparatorToMenu, createLeaf, createNonLeafcreateMenusprotected void addLeafToTop(ShadowMenu shadow, Menu target)
addLeafToTop in class AbstractMenuCreator<Menu,Menu>protected Menu addNonLeafToTop(ShadowMenu shadow, Menu target)
addNonLeafToTop in class AbstractMenuCreator<Menu,Menu>protected void addSeparatorToTop(Menu target)
addSeparatorToTop in class AbstractMenuCreator<Menu,Menu>Copyright © 2015–2022 SciJava. All rights reserved.