public abstract class WaitingDialogThread<T> extends Object implements Runnable, org.openide.util.Cancellable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canceled |
protected WaitDialog |
wd |
| Constructor and Description |
|---|
WaitingDialogThread(Frame parent,
boolean modal,
String text,
Icon icon,
int delay)
Creates a new WaitingDialogThread object.
|
WaitingDialogThread(Frame parent,
boolean modal,
String text,
Icon icon,
int delay,
boolean cancellable)
Creates a new WaitingDialogThread object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
protected abstract T |
doInBackground()
The task that should be executed is implemented in this method.
|
protected void |
done()
This method is executed in the edt after the backgrund task.
|
protected T |
get()
provides the result of the background task.
|
void |
run() |
void |
start()
starts the implemented task.
|
protected WaitDialog wd
protected boolean canceled
public WaitingDialogThread(Frame parent, boolean modal, String text, Icon icon, int delay)
parent - paretn framemodal - true, if the dialog should be modaltext - the text that should be shown in the dialogicon - the icon of the dialogdelay - after this delay, the dialog should be shownpublic WaitingDialogThread(Frame parent, boolean modal, String text, Icon icon, int delay, boolean cancellable)
parent - paretn framemodal - true, if the dialog should be modaltext - the text that should be shown in the dialogicon - the icon of the dialogdelay - after this delay, the dialog should be showncancellable - true, if a cancel button should be shown and the doInBackground() method should
handle the interrupt signal, if this is trueprotected abstract T doInBackground() throws Exception
Exception - DOCUMENT ME!protected void done()
protected T get() throws Exception
Exception - the exception, that was thrown in the background taskpublic boolean cancel()
cancel in interface org.openide.util.Cancellablepublic void start()
Copyright © 2012–2026 cismet GmbH. All rights reserved.