Class ActionWorker<R,​P>

  • All Implemented Interfaces:
    Runnable, Future<R>, RunnableFuture<R>

    public class ActionWorker<R,​P>
    extends SwingWorker<R,​P>
    Action worker to execute a incoming action.
    Since:
    2.1
    Author:
    Tony Chemit - dev@tchemit.fr
    • Constructor Detail

      • ActionWorker

        public ActionWorker​(String actionLabel)
      • ActionWorker

        public ActionWorker​(String actionLabel,
                            Runnable target)
    • Method Detail

      • setTarget

        public void setTarget​(Runnable target)
      • setTarget

        public void setTarget​(Callable<R> target)
        Set the target to execute.
        Parameters:
        target - the target to execute
        Since:
        2.5.1
      • isFailed

        public boolean isFailed()
      • getActionLabel

        public String getActionLabel()
      • getTime

        public String getTime()
      • getStartTime

        public long getStartTime()
      • getEndTime

        public long getEndTime()