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, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent e, PropertyChangeListener stateListener) protected PropertyChangeListenerMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Constructor Details
-
SlowAction
public SlowAction()
-
-
Method Details
-
getStateListener
-
actionPerformed
-