|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingworker.SwingWorker<T,V>
com.jgoodies.uif.util.SafeWorker<T,V>
T
- the result type returned by this SwingWorker's
doInBackground
and get
methodsV
- the type used for carrying out intermediate results by this
SwingWorker's
publish
and process
methodspublic abstract class SafeWorker<T,V>
Adds behavior to its superclass SwingWorker to properly handle exceptions thrown during the background execution.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jdesktop.swingworker.SwingWorker |
---|
org.jdesktop.swingworker.SwingWorker.StateValue |
Constructor Summary | |
---|---|
SafeWorker()
|
Method Summary | |
---|---|
protected void |
cancelled()
Called when this worker has been canceled by means of SwingWorker.cancel(boolean) method. |
protected void |
done()
|
protected void |
failed(Throwable throwable)
Called when a background execution of a worker throws an exception. |
protected void |
finished()
Called as the last operation when a task is done. |
protected void |
interrupted(InterruptedException e)
Called when a worker background execution has been interrupted. |
protected void |
succeeded(T result)
Called when the background operation has been successfully executed. |
Methods inherited from class org.jdesktop.swingworker.SwingWorker |
---|
addPropertyChangeListener, cancel, doInBackground, 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 |
Constructor Detail |
---|
public SafeWorker()
Method Detail |
---|
protected final void done()
done
in class org.jdesktop.swingworker.SwingWorker<T,V>
protected void succeeded(T result)
result
- the result of the worker execution as returned by
SwingWorker.get()
; may be null
.protected void cancelled()
SwingWorker.cancel(boolean)
method.
protected void failed(Throwable throwable)
Application#handleException
.
throwable
- the exception thrown during the background executionprotected void interrupted(InterruptedException e)
protected void finished()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |