- All Known Implementing Classes:
GuiSwingViewCollectionTable.CollectionCellMenuSupplier
,GuiSwingViewCollectionTable.CollectionColumnMenuSupplier
,ObjectTableColumnValue.ObjectTableColumnActionBuilder
,ObjectTableModel.PopupCategorizedForRowsOrCells
,PopupCategorized
,PopupCategorized.PopupCategorizedFixed
,PopupExtension.PopupMenuBuilderEmpty
,PopupExtensionText.TextServiceDefaultMenu
- Enclosing class:
PopupExtension
public static interface PopupExtension.PopupMenuBuilder
the interface for constructing menus
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(PopupExtension.PopupMenuFilter filter, Consumer<Object> menu) default void
buildWithClear
(PopupExtension.PopupMenuFilter filter, JPopupMenu menu) the default behavior reconstruct entire items bybuild(PopupExtension.PopupMenuFilter, Consumer)
.
-
Method Details
-
build
the Consumer acceptsAction
includingJMenu
andJPopupMenu
JMenuItem
JComponent
- Parameters:
filter
- an item filtermenu
- the target for appending menus
-
buildWithClear
the default behavior reconstruct entire items bybuild(PopupExtension.PopupMenuFilter, Consumer)
. The Consumer can append an item to the menu.- Parameters:
filter
- an item filtermenu
- the target for appending menus
-