public abstract class MultithreadedMethod extends Object
http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
Note that the API changed slightly in the 3rd version: You must now invoke start() on the SwingWorker after creating it.
| Modifier and Type | Field and Description |
|---|---|
protected ProgressObserver |
progressObserver |
| Constructor and Description |
|---|
MultithreadedMethod()
Start a thread that will call the
construct method and then exit. |
MultithreadedMethod(ProgressObserver progressObserver)
Creates a new MultithreadedMethod object.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doInvoke()
Place your code that should be executed in a new thread here.
|
protected void |
finish()
Place your code that should be executed after the thread has finished here.
|
ProgressObserver |
getProgressObserver()
DOCUMENT ME!
|
protected void |
init(Object object)
Place your code that should be executed before the thread starts here.
|
void |
interrupt()
A new method that interrupts the worker thread.
|
void |
invoke(Object object)
Start the worker thread.
|
boolean |
isProgressObservable()
DOCUMENT ME!
|
protected ProgressObserver progressObserver
public MultithreadedMethod()
construct method and then exit.public MultithreadedMethod(ProgressObserver progressObserver)
progressObserver - DOCUMENT ME!public final ProgressObserver getProgressObserver()
public final boolean isProgressObservable()
public final void invoke(Object object)
object - DOCUMENT ME!public final void interrupt()
protected void init(Object object)
object - DOCUMENT ME!protected abstract void doInvoke()
protected void finish()
Copyright © 2012–2026 cismet GmbH. All rights reserved.