jaxx.runtime.swing.application
Class ActionWorker<R,P>
java.lang.Object
javax.swing.SwingWorker<R,P>
jaxx.runtime.swing.application.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:
- tchemit
| 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 |
actionLabel
protected final String actionLabel
target
protected Runnable target
status
protected ActionWorker.ActionStatus status
error
protected Exception error
startTime
protected long startTime
endTime
protected long endTime
ActionWorker
public ActionWorker(String actionLabel)
ActionWorker
public ActionWorker(String actionLabel,
Runnable target)
getTarget
public Runnable getTarget()
setTarget
public void setTarget(Runnable target)
doInBackground
protected R doInBackground()
throws Exception
- Specified by:
doInBackground in class SwingWorker<R,P>
- Throws:
Exception
isFailed
public boolean isFailed()
getError
public Exception getError()
getStatus
public ActionWorker.ActionStatus getStatus()
getActionLabel
public String getActionLabel()
done
protected void done()
- Overrides:
done in class SwingWorker<R,P>
getTime
public String getTime()
getStartTime
public long getStartTime()
getEndTime
public long getEndTime()
Copyright © 2008-2012 CodeLutin. All Rights Reserved.