jaxx.runtime.swing
Class AbstractActionThread.ActionWorker

java.lang.Object
  extended by javax.swing.SwingWorker<Void,Object>
      extended by jaxx.runtime.swing.AbstractActionThread.ActionWorker
All Implemented Interfaces:
Runnable, Future<Void>, RunnableFuture<Void>
Enclosing class:
AbstractActionThread

public static class AbstractActionThread.ActionWorker
extends SwingWorker<Void,Object>

Action worker to execute a incoming action.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
 
Field Summary
protected  String actionLabel
           
protected  long endTime
           
protected  Exception error
           
protected  long startTime
           
protected  jaxx.runtime.swing.AbstractActionThread.ActionStatus status
           
protected  Runnable target
           
 
Constructor Summary
AbstractActionThread.ActionWorker(String actionLabel, Runnable target)
           
 
Method Summary
protected  Void doInBackground()
           
protected  void done()
           
 String getActionLabel()
           
 long getEndTime()
           
 Exception getError()
           
 long getStartTime()
           
 jaxx.runtime.swing.AbstractActionThread.ActionStatus getStatus()
           
 String getTime()
           
 boolean isFailed()
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionLabel

protected final String actionLabel

target

protected final Runnable target

status

protected jaxx.runtime.swing.AbstractActionThread.ActionStatus status

error

protected Exception error

startTime

protected long startTime

endTime

protected long endTime
Constructor Detail

AbstractActionThread.ActionWorker

public AbstractActionThread.ActionWorker(String actionLabel,
                                         Runnable target)
Method Detail

doInBackground

protected Void doInBackground()
                       throws Exception
Specified by:
doInBackground in class SwingWorker<Void,Object>
Throws:
Exception

isFailed

public boolean isFailed()

getError

public Exception getError()

getStatus

public jaxx.runtime.swing.AbstractActionThread.ActionStatus getStatus()

getActionLabel

public String getActionLabel()

done

protected void done()
Overrides:
done in class SwingWorker<Void,Object>

getTime

public String getTime()

getStartTime

public long getStartTime()

getEndTime

public long getEndTime()


Copyright © 2008-2010 CodeLutin. All Rights Reserved.