edu.cs.ai.kreator.ui.gui.components.controller
Class OutlineSamplecollectionWorker

java.lang.Object
  extended by javax.swing.SwingWorker<T,KreatorWorker.Status>
      extended by edu.cs.ai.kreator.control.KreatorWorker<java.lang.Void>
          extended by edu.cs.ai.kreator.control.EventKreatorWorker
              extended by edu.cs.ai.kreator.ui.gui.components.controller.OutlineWorker
                  extended by edu.cs.ai.kreator.ui.gui.components.controller.OutlineSamplecollectionWorker
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.Void>, java.util.concurrent.RunnableFuture<java.lang.Void>

public class OutlineSamplecollectionWorker
extends OutlineWorker

This is a worker class. It calculates the outline tree for sample collection files.

Author:
Tim Janus

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.cs.ai.kreator.control.EventKreatorWorker
EventKreatorWorker.WorkerDispatcher
 
Nested classes/interfaces inherited from class edu.cs.ai.kreator.control.KreatorWorker
KreatorWorker.Status
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Field Summary
 
Fields inherited from class edu.cs.ai.kreator.ui.gui.components.controller.OutlineWorker
lastParsingException, treeModel
 
Fields inherited from class edu.cs.ai.kreator.control.KreatorWorker
LOG
 
Constructor Summary
OutlineSamplecollectionWorker(SampleCollection sc, EventKreatorWorker.WorkerDispatcher dispatcher)
          Ctor
 
Method Summary
protected  java.lang.Void myDoInBackground()
          parses the sample collection file and generates the outline tree with the given data.
 
Methods inherited from class edu.cs.ai.kreator.ui.gui.components.controller.OutlineWorker
getTreeModel, showParsingError
 
Methods inherited from class edu.cs.ai.kreator.control.EventKreatorWorker
done
 
Methods inherited from class edu.cs.ai.kreator.control.KreatorWorker
doInBackground, forceKill, forceResume, forceSuspend, getConsole, getStatus, myDone, pleaseAbort, pleaseWait, process, publish, resetShouldAbort, resume, shouldAbort, shouldWait
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutlineSamplecollectionWorker

public OutlineSamplecollectionWorker(SampleCollection sc,
                                     EventKreatorWorker.WorkerDispatcher dispatcher)
Ctor

Parameters:
sc - sample collection file
dispatcher - reference to the work dispatcher
Method Detail

myDoInBackground

protected java.lang.Void myDoInBackground()
                                   throws AbortedExecutionException
parses the sample collection file and generates the outline tree with the given data.

Overrides:
myDoInBackground in class OutlineWorker
Returns:
Throws:
AbortedExecutionException