public abstract class AbstractSwingMenuCreator<T> extends AbstractMenuCreator<T,JMenu>
ShadowMenu
.
This class is called AbstractSwingMenuCreator
rather than simply
AbstractMenuCreator
to avoid having multiple classes with the same
name in different packages (e.g., imagej.menu.AbstractMenuCreator
and
imagej.ui.swing.menu.AbstractMenuCreator
).
Constructor and Description |
---|
AbstractSwingMenuCreator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addLeafToMenu(ShadowMenu shadow,
JMenu target) |
protected JMenu |
addNonLeafToMenu(ShadowMenu shadow,
JMenu target) |
protected void |
addSeparatorToMenu(JMenu target) |
protected JMenuItem |
createLeaf(ShadowMenu shadow) |
void |
createMenus(ShadowMenu root,
T target) |
protected JMenu |
createNonLeaf(ShadowMenu shadow) |
addLeafToTop, addNonLeafToTop, addSeparatorToTop
public void createMenus(ShadowMenu root, T target)
createMenus
in interface MenuCreator<T>
createMenus
in class AbstractMenuCreator<T,JMenu>
protected void addLeafToMenu(ShadowMenu shadow, JMenu target)
addLeafToMenu
in class AbstractMenuCreator<T,JMenu>
protected JMenu addNonLeafToMenu(ShadowMenu shadow, JMenu target)
addNonLeafToMenu
in class AbstractMenuCreator<T,JMenu>
protected void addSeparatorToMenu(JMenu target)
addSeparatorToMenu
in class AbstractMenuCreator<T,JMenu>
protected JMenuItem createLeaf(ShadowMenu shadow)
protected JMenu createNonLeaf(ShadowMenu shadow)
Copyright © 2015–2022 SciJava. All rights reserved.