public abstract class SwingWorker extends Object
| Constructor and Description |
|---|
SwingWorker()
Start a thread that will call the construct method
and then exit.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
construct()
Compute the value to be returned by the get method.
|
Object |
get()
Return the value created by the construct method
Returns null if either the constructing thread or the current
thread was interrupted before a value was produced
|
protected Object |
getValue()
Get the value produced by the worker thread, or null if it
hasn't been constructed yet.
|
void |
interrupt()
A new method that interrupts the worker thread.
|
void |
start()
Start the worker thread.
|
public SwingWorker()
protected Object getValue()
public abstract Object construct()
public void interrupt()
public Object get()
public void start()
Copyright © 2017. All rights reserved.