Class FileChooser.Task

java.lang.Object
noaa.coastwatch.gui.open.FileChooser.Task
Enclosing class:
FileChooser

public abstract static class FileChooser.Task extends Object
The 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 Details

    • Task

      public Task()
  • Method Details

    • getMessage

      public abstract String getMessage()
      Gets the status message for the task start.
    • run

      public abstract void run() throws IOException
      Performs the task.
      Throws:
      IOException
    • followup

      public void followup()
      Performs the optional followup task (only if no exception).