Module org.autogui
Package org.autogui.swing.util
Class PopupCategorized.CategorizedMenuItemComponentDelegate
java.lang.Object
org.autogui.swing.util.PopupCategorized.CategorizedMenuItemComponentDelegate
- All Implemented Interfaces:
PopupCategorized.CategorizedMenuItem
,PopupCategorized.CategorizedMenuItemComponent
- Enclosing class:
PopupCategorized
public static class PopupCategorized.CategorizedMenuItemComponentDelegate
extends Object
implements PopupCategorized.CategorizedMenuItemComponent
a
PopupCategorized.CategorizedMenuItemComponent
with custom category and subCategory-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCategorizedMenuItemComponentDelegate
(PopupCategorized.CategorizedMenuItemComponent component, String category, String subCategory) -
Method Summary
Methods 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
getMenuItemWithAction
-
Field Details
-
component
-
category
-
subCategory
-
-
Constructor Details
-
CategorizedMenuItemComponentDelegate
public CategorizedMenuItemComponentDelegate(PopupCategorized.CategorizedMenuItemComponent component) -
CategorizedMenuItemComponentDelegate
public CategorizedMenuItemComponentDelegate(PopupCategorized.CategorizedMenuItemComponent component, String category, String subCategory)
-
-
Method Details
-
getMenuItem
- Specified by:
getMenuItem
in interfacePopupCategorized.CategorizedMenuItemComponent
-
getName
- Specified by:
getName
in interfacePopupCategorized.CategorizedMenuItem
- Specified by:
getName
in interfacePopupCategorized.CategorizedMenuItemComponent
-
getIcon
- Specified by:
getIcon
in interfacePopupCategorized.CategorizedMenuItem
- Specified by:
getIcon
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
-