com.levigo.util.swing
Class SwingWorkerAdapter

java.lang.Object
  extended by com.levigo.util.swing.SwingWorkerAdapter
All Implemented Interfaces:
Runnable

public abstract class SwingWorkerAdapter
extends Object
implements Runnable

Abstract class to redirect a task to event dispatch queue.

Author:
Carolin Köhler

Constructor Summary
protected SwingWorkerAdapter()
          SwingWorkerAdapter
 
Method Summary
protected abstract  void performWork()
           
 void run()
          Calls performWork on EDT.
 void runNow()
          Calls performWork on EDT, but stops the actual thread until task is performed..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingWorkerAdapter

protected SwingWorkerAdapter()
SwingWorkerAdapter

Method Detail

performWork

protected abstract void performWork()

run

public void run()
Calls performWork on EDT.

Specified by:
run in interface Runnable

runNow

public void runNow()
            throws InterruptedException,
                   InvocationTargetException
Calls performWork on EDT, but stops the actual thread until task is performed..

Throws:
InterruptedException
InvocationTargetException


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.