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

    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

    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

    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

    Methods inherited from interface java.awt.event.ActionListener

    actionPerformed
  • Constructor Details

  • Method Details

    • getStateListener

      protected java.beans.PropertyChangeListener getStateListener()
    • actionPerformed

      public void actionPerformed​(java.awt.event.ActionEvent e, java.beans.PropertyChangeListener stateListener)