Class PhonUIAction<T>

java.lang.Object
javax.swing.AbstractAction
ca.phon.ui.action.PhonUIAction<T>
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class PhonUIAction<T> extends AbstractAction
UI action calling FunctionalInterface methods.
See Also:
  • Method Details

    • runnable

      public static PhonUIAction<Void> runnable(Runnable runnable)
    • consumer

      public static <T> PhonUIAction<T> consumer(Consumer<T> consumer, T data)
    • eventConsumer

      public static PhonUIAction<Void> eventConsumer(Consumer<PhonActionEvent<Void>> eventConsumer)
    • eventConsumer

      public static <T> PhonUIAction<T> eventConsumer(Consumer<PhonActionEvent<T>> eventConsumer, T data)
    • isRunInBackground

      public boolean isRunInBackground()
      Should we run in the background
    • setRunInBackground

      public void setRunInBackground(boolean v)
    • getWorkerThread

      public PhonWorker getWorkerThread()
      Background thread
    • setWorkerThread

      public void setWorkerThread(PhonWorker th)
    • getData

      public T getData()
      Data
    • setData

      public void setData(T data)
    • executeRunnable

      protected void executeRunnable(Runnable runnable)
    • actionPerformed

      public void actionPerformed(ActionEvent ae)