Package se.datadosen.util
Class SlowAction
java.lang.Object
javax.swing.AbstractAction
se.datadosen.util.SlowAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
AbstractAction that allows the caller to pass a PropertyChangeListener reference
that will be called when the slow work is starting and done.
It is up to the implementing subclass to make sure that the listener is called
See SwingWorker.StateValue for states that should be passed to getNewValue()
- Since:
- 8.5
- See Also:
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent e, PropertyChangeListener stateListener) protected PropertyChangeListener
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 java.awt.event.ActionListener
actionPerformed
-
Constructor Details
-
SlowAction
public SlowAction()
-
-
Method Details
-
getStateListener
-
actionPerformed
-