Class LambdaAction<T extends LambdaAction>

java.lang.Object
javax.swing.AbstractAction
se.datadosen.component.SmartAction
se.datadosen.util.LambdaAction<T>
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class LambdaAction<T extends LambdaAction>
extends SmartAction
See Also:
Serialized Form
  • Property Summary

    Properties inherited from class se.datadosen.component.SmartAction

    enabled
  • Field Summary

    Fields inherited from class se.datadosen.component.SmartAction

    BLOCKED_KEY

    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
    LambdaAction​(java.awt.event.ActionListener listener)  
    LambdaAction​(java.lang.Runnable runnable)  
    LambdaAction​(java.lang.String name, java.awt.event.ActionListener listener)  
    LambdaAction​(java.lang.String name, java.lang.Runnable runnable)  
  • Method Summary

    Modifier and Type Method Description
    void actionPerformed​(java.awt.event.ActionEvent e)  
    T track()  

    Methods inherited from class se.datadosen.component.SmartAction

    accelerator, enabledProperty, isBlocked, setBlocked, setEnabled, toolTip

    Methods inherited from class javax.swing.AbstractAction

    addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener

    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
  • Constructor Details

    • LambdaAction

      public LambdaAction​(java.awt.event.ActionListener listener)
    • LambdaAction

      public LambdaAction​(java.lang.Runnable runnable)
    • LambdaAction

      public LambdaAction​(java.lang.String name, java.awt.event.ActionListener listener)
      Parameters:
      name -
      listener -
      Since:
      17.2
    • LambdaAction

      public LambdaAction​(java.lang.String name, java.lang.Runnable runnable)
      Parameters:
      name -
      runnable -
      Since:
      17.2
  • Method Details

    • track

      public T track()
    • actionPerformed

      public void actionPerformed​(java.awt.event.ActionEvent e)