- 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 TypeMethodDescriptionvoidbuild(PopupExtension.PopupMenuFilter filter, Consumer<Object> menu) default voidbuildWithClear(PopupExtension.PopupMenuFilter filter, JPopupMenu menu) the default behavior reconstruct entire items bybuild(PopupExtension.PopupMenuFilter, Consumer).
-
Method Details
-
build
the Consumer acceptsActionincludingJMenuandJPopupMenuJMenuItemJComponent
- 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
-