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, waitMethods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItem
getKeyStrokeMethods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemAction
getMenuItem, getMenuItemWithActionMethods 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:
setEnabledin interfaceAction
-
isEnabled
public boolean isEnabled() -
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceAction
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceAction
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
getCategory
- Specified by:
getCategoryin interfacePopupCategorized.CategorizedMenuItem- Specified by:
getCategoryin interfacePopupCategorized.CategorizedMenuItemComponent- Returns:
- a category name, typically PopupExtension.MENU_CATEGORY_... or PopupCategorized.CATEGORY_...
-
getSubCategory
- Specified by:
getSubCategoryin interfacePopupCategorized.CategorizedMenuItem- Returns:
- a sub-category name, typically PopupExtension.MENU_SUB_CATEGORY_... PopupCategorized.SUB_CATEGORY_...
-
remap
- Specified by:
remapin interfacePopupCategorized.CategorizedMenuItem- Specified by:
remapin interfacePopupCategorized.CategorizedMenuItemAction- Specified by:
remapin interfacePopupCategorized.CategorizedMenuItemComponent
-
getAction
-