org.tbee.swing.jpa
Class SwingWorker<T,V>

java.lang.Object
  extended by org.tbee.swing.SwingWorker<T,V>
      extended by org.tbee.swing.jpa.SwingWorker<T,V>
Type Parameters:
T -
V -

public abstract class SwingWorker<T,V>
extends SwingWorker<T,V>

Extended SwingWorker which binds the provided or found EM to the background thread. Use "execute()" to start. Usage: new SwingWorker(c, "Title", 1) // this constructor also creates a progress monitor {


Constructor Summary
SwingWorker()
           
SwingWorker(Component parentComponent, String message, int number)
           
SwingWorker(javax.persistence.EntityManager entityManager)
           
SwingWorker(javax.persistence.EntityManager entityManager, Component parentComponent, String message, int number)
           
 
Method Summary
protected  T doInBackgroundWrapped()
          This method is use to wrap the call to doInBackground()
 
Methods inherited from class org.tbee.swing.SwingWorker
doInBackground, done, exceptionThrown, execute, get, getProgressListener, getProgressMonitorMulti
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingWorker

public SwingWorker()

SwingWorker

public SwingWorker(javax.persistence.EntityManager entityManager)
Parameters:
entityManager -

SwingWorker

public SwingWorker(Component parentComponent,
                   String message,
                   int number)
Parameters:
parentComponent -
message -
number -

SwingWorker

public SwingWorker(javax.persistence.EntityManager entityManager,
                   Component parentComponent,
                   String message,
                   int number)
Parameters:
entityManager -
parentComponent -
message -
number -
Method Detail

doInBackgroundWrapped

protected T doInBackgroundWrapped()
                           throws Exception
This method is use to wrap the call to doInBackground()

Overrides:
doInBackgroundWrapped in class SwingWorker<T,V>
Returns:
Throws:
Exception


Copyright © 2011 KnowledgePlaza. All Rights Reserved.