task
Class OptionsReadTask

java.lang.Object
  extended by javax.swing.SwingWorker<Options,java.lang.Void>
      extended by task.OptionsReadTask
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<Options>, java.util.concurrent.RunnableFuture<Options>

public class OptionsReadTask
extends javax.swing.SwingWorker<Options,java.lang.Void>

This class will read the options data file in the background.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Constructor Summary
OptionsReadTask()
          Creates a new OptionsReadTask to read the options stored within an Options data file.
 
Method Summary
 Options doInBackground()
          Performs the options data file reading in the background.
 void done()
          Called after the doInBackground Method has been finished.
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsReadTask

public OptionsReadTask()
Creates a new OptionsReadTask to read the options stored within an Options data file.

Method Detail

doInBackground

public Options doInBackground()
Performs the options data file reading in the background.

Specified by:
doInBackground in class javax.swing.SwingWorker<Options,java.lang.Void>
Returns:
the Options that have been stored in the Options data file.

done

public void done()
Called after the doInBackground Method has been finished. This method alerts the user via command line that reading the options data file has finished.

Overrides:
done in class javax.swing.SwingWorker<Options,java.lang.Void>