IMPACT
Class GenericJarTask

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

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

Implementation of background task to run any java (jar) program file.
Used for A Tree Viewer (ATV) and Jmol programs.

Author:
Emanuel Maldonado
See Also:
ConTestTask, PhyMLTask, RSoftwareTask

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Method Summary
protected  java.lang.Void doInBackground()
          Background task of jar file.
protected  void done()
          Termination of execution.
 boolean isdone()
          Test if task has terminated.
 void stop()
          Stop generic java task.
 
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
 

Method Detail

doInBackground

protected java.lang.Void doInBackground()
Background task of jar file.

Specified by:
doInBackground in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
Returns:
run

done

protected void done()
Termination of execution.

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

stop

public void stop()
Stop generic java task.


isdone

public boolean isdone()
Test if task has terminated.

Returns:
true if done; false otherwise.