public class AWTPopupMenuCreator extends AbstractAWTMenuCreator<PopupMenu>
PopupMenu with menu items from a ShadowMenu.
Unfortunately, the AWTMenuBarCreator, AWTPopupMenuCreator 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 AWTPopupMenuCreator rather than simply
PopupMenuCreator for consistency with other UI implementations such
as AWTMenuCreator.
| Constructor and Description |
|---|
AWTPopupMenuCreator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLeafToTop(ShadowMenu shadow,
PopupMenu target) |
protected Menu |
addNonLeafToTop(ShadowMenu shadow,
PopupMenu target) |
protected void |
addSeparatorToTop(PopupMenu target) |
addLeafToMenu, addNonLeafToMenu, addSeparatorToMenu, createLeaf, createNonLeafcreateMenusprotected void addLeafToTop(ShadowMenu shadow, PopupMenu target)
addLeafToTop in class AbstractMenuCreator<PopupMenu,Menu>protected Menu addNonLeafToTop(ShadowMenu shadow, PopupMenu target)
addNonLeafToTop in class AbstractMenuCreator<PopupMenu,Menu>protected void addSeparatorToTop(PopupMenu target)
addSeparatorToTop in class AbstractMenuCreator<PopupMenu,Menu>Copyright © 2015–2022 SciJava. All rights reserved.