task
Class OptionsWriteTask

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

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

The OptionsWriteTask will write the given options object to 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
OptionsWriteTask(Options o)
          Creates a new OptionsWriteTask object.
 
Method Summary
 java.lang.Void doInBackground()
          The SwingWorker method that writes the options object to a data file in the background.
 void done()
          Called after the SwingWorker task is completed.
 
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

OptionsWriteTask

public OptionsWriteTask(Options o)
Creates a new OptionsWriteTask object.

Parameters:
o - The Options object to write to a data file.
Method Detail

doInBackground

public java.lang.Void doInBackground()
The SwingWorker method that writes the options object to a data file in the background.

Specified by:
doInBackground in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
Returns:
Void in this case the Void object of the SwingWorker task.

done

public void done()
Called after the SwingWorker task is completed.

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