uk.ac.cisban.rod.data.handlers
Class ExportExperimentTask

java.lang.Object
  extended by javax.swing.SwingWorker<MANAGED,MANAGED1>
      extended by uk.ac.cisban.rod.data.handlers.StateSwingWorker<java.lang.Void,java.lang.Void>
          extended by uk.ac.cisban.rod.data.handlers.ExportExperimentTask
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.Void>, java.util.concurrent.RunnableFuture<java.lang.Void>

public class ExportExperimentTask
extends StateSwingWorker<java.lang.Void,java.lang.Void>

Loads details of current experiment, and opens file browser to allow user to specify where to save output.

Since:
17-Dec-2008 1:20:12 PM
Author:
Morgan Taschuk

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Field Summary
protected  java.io.File afile
           
 
Constructor Summary
ExportExperimentTask(java.io.File file)
           
ExportExperimentTask(java.io.File file, Experiment exp)
           
 
Method Summary
 java.lang.Void doInBackground()
           
 void done()
           
 java.util.Collection<Image> getImages(java.lang.Long actionAppId)
           
 
Methods inherited from class uk.ac.cisban.rod.data.handlers.StateSwingWorker
addException, addExceptions, getException, getId, getStatus, setRandomProgress, setStatus
 
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
 

Field Detail

afile

protected java.io.File afile
Constructor Detail

ExportExperimentTask

public ExportExperimentTask(java.io.File file)

ExportExperimentTask

public ExportExperimentTask(java.io.File file,
                            Experiment exp)
Method Detail

doInBackground

public java.lang.Void doInBackground()
                              throws java.lang.Exception
Specified by:
doInBackground in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
Throws:
java.lang.Exception

getImages

public java.util.Collection<Image> getImages(java.lang.Long actionAppId)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

done

public void done()
Overrides:
done in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>


Copyright © 2010. All Rights Reserved.