Class DynamicAsyncAction
java.lang.Object
javax.swing.AbstractAction
uk.theretiredprogrammer.actionssupport.DynamicAction
uk.theretiredprogrammer.actionssupport.DynamicAsyncAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
DynamicAsyncAction is a extension of DynamicAction.
It's action method runs the Action method on another thread, so not blocking the Action calling thread.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionDynamicAsyncAction(String label) Construct a DynamicAsyncAction which is enabled -
Method Summary
Modifier and TypeMethodDescriptionenable(boolean enable) Enable/Disable this Action.Set the Action method.Methods inherited from class uk.theretiredprogrammer.actionssupport.DynamicAction
actionPerformedMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
DynamicAsyncAction
Construct a DynamicAsyncAction which is enabled- Parameters:
label- The label used when this DynamicAsyncAction is displayed.
-
-
Method Details
-
onAction
Description copied from class:DynamicActionSet the Action method.- Overrides:
onActionin classDynamicAction- Parameters:
action- the method to be run when this action is selected.- Returns:
- this object
-
enable
Description copied from class:DynamicActionEnable/Disable this Action.- Overrides:
enablein classDynamicAction- Parameters:
enable- true if enable, false if disable.- Returns:
- this object
-