Module org.autogui
Package org.autogui.swing.util
Class PopupCategorized.CategorizedMenuItemComponentDefault
java.lang.Object
org.autogui.swing.util.PopupCategorized.CategorizedMenuItemComponentDefault
- All Implemented Interfaces:
PopupCategorized.CategorizedMenuItem
,PopupCategorized.CategorizedMenuItemComponent
- Enclosing class:
PopupCategorized
public static class PopupCategorized.CategorizedMenuItemComponentDefault
extends Object
implements PopupCategorized.CategorizedMenuItemComponent
the default impl. of
PopupCategorized.CategorizedMenuItemComponent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCategorizedMenuItemComponentDefault
(JComponent component) CategorizedMenuItemComponentDefault
(JComponent component, String category, String subCategory) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItem
getKeyStroke
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemComponent
getIcon, getMenuItemWithAction, getName
-
Field Details
-
component
-
category
-
subCategory
-
-
Constructor Details
-
CategorizedMenuItemComponentDefault
-
CategorizedMenuItemComponentDefault
public CategorizedMenuItemComponentDefault(JComponent component, String category, String subCategory)
-
-
Method Details
-
getMenuItem
- Specified by:
getMenuItem
in interfacePopupCategorized.CategorizedMenuItemComponent
-
getCategory
- Specified by:
getCategory
in interfacePopupCategorized.CategorizedMenuItem
- Specified by:
getCategory
in interfacePopupCategorized.CategorizedMenuItemComponent
- Returns:
- a category name, typically PopupExtension.MENU_CATEGORY_... or PopupCategorized.CATEGORY_...
-
getSubCategory
- Specified by:
getSubCategory
in interfacePopupCategorized.CategorizedMenuItem
- Returns:
- a sub-category name, typically PopupExtension.MENU_SUB_CATEGORY_... PopupCategorized.SUB_CATEGORY_...
-
remap
- Specified by:
remap
in interfacePopupCategorized.CategorizedMenuItem
- Specified by:
remap
in interfacePopupCategorized.CategorizedMenuItemComponent
-