ini.trakem2.utils
Class Worker.Task

java.lang.Object
  extended by ini.trakem2.utils.Worker
      extended by ini.trakem2.utils.Worker.Task
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Worker

public abstract static class Worker.Task
extends Worker

A class that calls run() wrapped properly for task monitoring; Create it like this: Bureaucrat b = Bureaucrat.createAndStart(new Worker.Task("Title") { public void exec() { doSomething(); doSomethingElse(); }}, project);


Nested Class Summary
 
Nested classes/interfaces inherited from class ini.trakem2.utils.Worker
Worker.Task
 
Field Summary
 
Fields inherited from class ini.trakem2.utils.Worker
quit, result
 
Constructor Summary
Worker.Task(java.lang.String title)
           
Worker.Task(java.lang.String title, boolean interrupt_on_quit)
           
 
Method Summary
abstract  void exec()
           
 void run()
           
 
Methods inherited from class ini.trakem2.utils.Worker
cleanup, finishedWorking, getProperty, getResult, getTaskName, getThreadName, hasQuitted, hasStarted, isWorking, join, onBackground, quit, setAsBackground, setPriority, setProperty, setTaskName, startedWorking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Worker.Task

public Worker.Task(java.lang.String title)

Worker.Task

public Worker.Task(java.lang.String title,
                   boolean interrupt_on_quit)
Method Detail

exec

public abstract void exec()

run

public void run()