java.lang.Object
org.autogui.swing.util.PopupCategorized
org.autogui.swing.util.PopupCategorized.PopupCategorizedFixed
- All Implemented Interfaces:
Cloneable,PopupExtension.PopupMenuBuilder
- Enclosing class:
PopupCategorized
another menu builder with limiting items
-
Nested Class Summary
Nested classes/interfaces inherited from class org.autogui.swing.util.PopupCategorized
PopupCategorized.CategorizedMenuItem, PopupCategorized.CategorizedMenuItemAction, PopupCategorized.CategorizedMenuItemActionCheck, PopupCategorized.CategorizedMenuItemActionCheckDelegate, PopupCategorized.CategorizedMenuItemActionDelegate, PopupCategorized.CategorizedMenuItemComponent, PopupCategorized.CategorizedMenuItemComponentDefault, PopupCategorized.CategorizedMenuItemComponentDelegate, PopupCategorized.CategorizedMenuItemLabel, PopupCategorized.CategorizedMenuItemLabelDelegate, PopupCategorized.PopupCategorizedBuildingItems, PopupCategorized.PopupCategorizedFixed, PopupCategorized.SearchPopupAction -
Field Summary
Fields inherited from class org.autogui.swing.util.PopupCategorized
CATEGORY_ACTION, CATEGORY_LABEL, itemConsumer, itemSupplier, menuBuilder, SUB_CATEGORY_LABEL_ACTION, SUB_CATEGORY_LABEL_HEADER, SUB_CATEGORY_LABEL_MISC, SUB_CATEGORY_LABEL_TYPE, SUB_CATEGORY_LABEL_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionPopupCategorizedFixed(Supplier<? extends Collection<PopupCategorized.CategorizedMenuItem>> itemSupplier) PopupCategorizedFixed(Supplier<? extends Collection<PopupCategorized.CategorizedMenuItem>> itemSupplier, Consumer<PopupCategorized.CategorizedMenuItem> itemConsumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildCategories(Consumer<Object> menu, Map<String, List<JComponent>> categorizedMenuItems, int totalSize) Methods inherited from class org.autogui.swing.util.PopupCategorized
build, buildCleanEmptyCategories, buildMergeSubCategories, buildNothing, buildSubCategories, clone, createMenuItem, createMenuItemFromObject, createMenuItems, createNewCategoryToSubCategoryToItems, createNewSubCategoryToItems, createPopupCategorizedBuildingItems, getItemSupplier, getJMenuItem, getMenuItem, getMenuItemAction, getMenuItems, getMenuItemsSupplier, getPredefinedCategoriesOrder, getPredefinedSubCategoriesOrder, select, setItemSupplier, setMenuBuilderMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.autogui.swing.util.PopupExtension.PopupMenuBuilder
buildWithClear
-
Constructor Details
-
PopupCategorizedFixed
public PopupCategorizedFixed(Supplier<? extends Collection<PopupCategorized.CategorizedMenuItem>> itemSupplier) -
PopupCategorizedFixed
public PopupCategorizedFixed(Supplier<? extends Collection<PopupCategorized.CategorizedMenuItem>> itemSupplier, Consumer<PopupCategorized.CategorizedMenuItem> itemConsumer)
-
-
Method Details
-
buildCategories
public void buildCategories(Consumer<Object> menu, Map<String, List<JComponent>> categorizedMenuItems, int totalSize) - Overrides:
buildCategoriesin classPopupCategorized
-
getMenuBuilder
- Overrides:
getMenuBuilderin classPopupCategorized
-