public abstract static class FileChooser.Task
extends java.lang.Object
Task
class allows the user to run a file chooser
task via FileChooser.runTask(noaa.coastwatch.gui.open.FileChooser.Task)
in a separate thread from
the AWT event queue, and output status messages to the user. The
task may be interrupted with the stop button. An optional
follow-up for the task will be run in the AWT event queue only if
the task run()
method did not throw an exception and the
stop button was not pressed.Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
void |
followup()
Performs the optional followup task (only if no exception).
|
abstract java.lang.String |
getMessage()
Gets the status message for the task start.
|
abstract void |
run()
Performs the task.
|
public abstract java.lang.String getMessage()
public abstract void run() throws java.io.IOException
java.io.IOException
public void followup()