sonification.dataimport.visbards_resourcetoolkit.model.threadtask
Class ThreadTask

java.lang.Object
  extended by sonification.dataimport.visbards_resourcetoolkit.model.threadtask.ThreadTask
All Implemented Interfaces:
ProgressReporter
Direct Known Subclasses:
DatasetLoader, DatasetUnloader, FileExaminer, ResourceSaver, SoapConnectionTask

public abstract class ThreadTask
extends java.lang.Object
implements ProgressReporter


Field Summary
protected  boolean fShowCancelButton
           
protected  java.lang.String fTitle
           
 
Constructor Summary
ThreadTask(java.lang.String title)
           
ThreadTask(java.lang.String title, boolean showCancelButton)
           
 
Method Summary
protected abstract  void execute()
           
 float getProgress()
           
 java.lang.String getTaskTitle()
           
 void go()
           
 boolean isFinished()
           
 boolean isSuccess()
           
 void setFinished()
           
 void setProgress(float progress)
           
 void setTaskTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fTitle

protected java.lang.String fTitle

fShowCancelButton

protected boolean fShowCancelButton
Constructor Detail

ThreadTask

public ThreadTask(java.lang.String title)

ThreadTask

public ThreadTask(java.lang.String title,
                  boolean showCancelButton)
Method Detail

go

public void go()

getProgress

public float getProgress()

setProgress

public void setProgress(float progress)
Specified by:
setProgress in interface ProgressReporter

setTaskTitle

public void setTaskTitle(java.lang.String title)
Specified by:
setTaskTitle in interface ProgressReporter

getTaskTitle

public java.lang.String getTaskTitle()

setFinished

public void setFinished()

isFinished

public boolean isFinished()

isSuccess

public boolean isSuccess()

execute

protected abstract void execute()
                         throws java.lang.Exception
Throws:
java.lang.Exception