Module org.autogui
Package org.autogui.swing.util
Class PopupCategorized.CategorizedMenuItemActionDelegate
java.lang.Object
org.autogui.swing.util.PopupCategorized.CategorizedMenuItemActionDelegate
- All Implemented Interfaces:
ActionListener
,EventListener
,Action
,PopupCategorized.CategorizedMenuItem
,PopupCategorized.CategorizedMenuItemAction
,PopupCategorized.CategorizedMenuItemComponent
- Direct Known Subclasses:
PopupCategorized.CategorizedMenuItemActionCheckDelegate
- Enclosing class:
PopupCategorized
public static class PopupCategorized.CategorizedMenuItemActionDelegate
extends Object
implements PopupCategorized.CategorizedMenuItemAction
an action wraps another action for supplying category info.
-
Field Summary
FieldsFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionCategorizedMenuItemActionDelegate
(Action action, 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.CategorizedMenuItemAction
getMenuItem, getMenuItemWithAction
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemComponent
getIcon, getName
-
Field Details
-
action
-
category
-
subCategory
-
-
Constructor Details
-
CategorizedMenuItemActionDelegate
-
CategorizedMenuItemActionDelegate
-
-
Method Details
-
getValue
-
putValue
-
setEnabled
public void setEnabled(boolean b) - Specified by:
setEnabled
in interfaceAction
-
isEnabled
public boolean isEnabled() -
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceAction
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceAction
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
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.CategorizedMenuItemAction
- Specified by:
remap
in interfacePopupCategorized.CategorizedMenuItemComponent
-
getAction
-