|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.denova.ui.Swinger
Swinger allows a program, in a thread safe way, to give the user feedback, do work in the background, and then give the user more feedback. It daisy chains 2 SwingWorkers to accomplish this. To use this class:
| Constructor Summary | |
Swinger()
|
|
| Method Summary | |
void |
execute()
Start a thread that will call the swingBefore,
workInBackground, swingAfter methods
and then exit. |
java.lang.Throwable |
getLastError()
Gets the last error, if there was one. |
boolean |
isDone()
Determines if done() is finished. |
boolean |
isError()
Determines if there was an untrapped throwable error. |
void |
swingAfter()
Called on the event dispatching thread (not on the worker thread) after the workInBackground method has returned. |
void |
swingBefore()
Called on the event dispatching thread (not on the worker thread) before the workInBackground method has returned. |
void |
workInBackground()
Do time consuming non-Swing work in background. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Swinger()
| Method Detail |
public void swingBefore()
workInBackground method has returned.
You can access Swing in this method. Do not do anything that
takes more than a very short time.
public void workInBackground()
public void swingAfter()
workInBackground method has returned.
You can access Swing in this method. Do not do anything that
takes more than a very short time.
public void execute()
swingBefore,
workInBackground, swingAfter methods
and then exit.
public boolean isDone()
public boolean isError()
public java.lang.Throwable getLastError()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||