Class EventKreatorWorker

  extended by javax.swing.SwingWorker<T,KreatorWorker.Status>
      extended by<java.lang.Void>
          extended by
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.Void>, java.util.concurrent.RunnableFuture<java.lang.Void>
Direct Known Subclasses:

public abstract class EventKreatorWorker
extends KreatorWorker<java.lang.Void>

An event driven worker. Saves a reference to its worker dispatcher. And informs it when the work is done. Does the same things like it parent class KreatorWorker but calls finished on the WorkDispatcher after that.

Tim Janus

Nested Class Summary
static interface EventKreatorWorker.WorkerDispatcher
Nested classes/interfaces inherited from class
Nested classes/interfaces inherited from class javax.swing.SwingWorker
Field Summary
Fields inherited from class
Constructor Summary
EventKreatorWorker(EventKreatorWorker.WorkerDispatcher dispatcher, KreatorConsole console)
Method Summary
protected  void done()
          This is called when execution finishes.
Methods inherited from class
doInBackground, forceKill, forceResume, forceSuspend, getConsole, getStatus, myDoInBackground, 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


public EventKreatorWorker(EventKreatorWorker.WorkerDispatcher dispatcher,
                          KreatorConsole console)

dispatcher - reference to the dispatcher
console - A KreatorConsole to bind.
Method Detail


protected void done()
Description copied from class: KreatorWorker
This is called when execution finishes. Successful or not.
First unregisters this worker with the worker controller. Then calls KreatorWorker.myDone(), which may be implemented by any KReatorWorker.

done in class KreatorWorker<java.lang.Void>