java.lang.Object
javax.swing.AbstractAction
org.autogui.swing.GuiSwingTaskRunner.ContextAction
org.autogui.swing.GuiSwingActionDefault.ExecutionAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,GuiSwingKeyBinding.RecommendedKeyStroke
,PopupCategorized.CategorizedMenuItem
,PopupCategorized.CategorizedMenuItemAction
,PopupCategorized.CategorizedMenuItemComponent
- Direct Known Subclasses:
GuiSwingTableColumnSetDefault.TableSelectionListAction
- Enclosing class:
GuiSwingActionDefault
public static class GuiSwingActionDefault.ExecutionAction
extends GuiSwingTaskRunner.ContextAction
implements PopupCategorized.CategorizedMenuItemAction, GuiSwingKeyBinding.RecommendedKeyStroke
a swing-action executing the action of the context.
the icon will be automatically determined by the name of the context via
GuiSwingIcons
- See Also:
-
Field Summary
FieldsFields inherited from class org.autogui.swing.GuiSwingTaskRunner.ContextAction
taskRunner
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields 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
ConstructorsConstructorDescriptionExecutionAction
(GuiMappingContext context, GuiSwingView.SpecifierManager targetSpecifier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
executeAction
(GuiReprValue.ObjectSpecifier specifier) getIcon()
void
setResultTarget
(Consumer<Object> resultTarget) Methods inherited from class org.autogui.swing.GuiSwingTaskRunner.ContextAction
executeContextTask, executeContextTask, getContext
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItem
getKeyStroke, getSubCategory
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemAction
getMenuItem, getMenuItemWithAction, remap
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemComponent
getCategory, getName
-
Field Details
-
resultTarget
-
running
-
targetSpecifier
-
-
Constructor Details
-
ExecutionAction
-
-
Method Details
-
setResultTarget
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- Overrides:
actionPerformed
in classGuiSwingTaskRunner.ContextAction
-
actionPerformedWithoutCheckingRunning
-
getIconName
-
executeAction
-
getIcon
- Specified by:
getIcon
in interfacePopupCategorized.CategorizedMenuItem
- Specified by:
getIcon
in interfacePopupCategorized.CategorizedMenuItemComponent
-
getActionPressedIcon
-
getRecommendedKeyStroke
- Specified by:
getRecommendedKeyStroke
in interfaceGuiSwingKeyBinding.RecommendedKeyStroke
-
getRecommendedKeyPrecedence
- Specified by:
getRecommendedKeyPrecedence
in interfaceGuiSwingKeyBinding.RecommendedKeyStroke
-