Package se.datadosen.util
Class SlowAction
java.lang.Object
javax.swing.AbstractAction
se.datadosen.util.SlowAction
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public abstract class SlowAction
extends javax.swing.AbstractAction
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:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SlowAction()
-
Method Summary
Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e, java.beans.PropertyChangeListener stateListener)
protected java.beans.PropertyChangeListener
getStateListener()
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
SlowAction
public SlowAction()
-
-
Method Details
-
getStateListener
protected java.beans.PropertyChangeListener getStateListener() -
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e, java.beans.PropertyChangeListener stateListener)
-