com.jurismarches.vradi.ui.task
Class VradiTask<T>

java.lang.Object
  extended by javax.swing.SwingWorker<T,Void>
      extended by com.jurismarches.vradi.ui.task.VradiTask<T>
All Implemented Interfaces:
Runnable, Future<T>, RunnableFuture<T>

public abstract class VradiTask<T>
extends SwingWorker<T,Void>

Author:
sletellier

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
 
Field Summary
protected  jaxx.runtime.JAXXContext context
           
protected  String i18nKey
           
protected  AbstractProgressBarUI pb
           
protected  boolean showErrorDialog
           
 
Constructor Summary
VradiTask(jaxx.runtime.JAXXContext context)
           
VradiTask(jaxx.runtime.JAXXContext context, AbstractProgressBarUI pb, String i18nKey)
           
VradiTask(jaxx.runtime.JAXXContext context, AbstractProgressBarUI pb, String i18nKey, boolean showErrorDialog)
           
VradiTask(jaxx.runtime.JAXXContext context, boolean showProgressBar)
           
VradiTask(jaxx.runtime.JAXXContext context, boolean showProgressBar, String i18nKey)
           
VradiTask(jaxx.runtime.JAXXContext context, String i18nKey)
           
 
Method Summary
abstract  T doAction()
           
protected  T doInBackground()
           
protected  void done()
           
 void doWhenDone()
           
 void doWhenError(Exception eee)
           
protected  String getErrorMsg()
           
protected  String getMsg()
           
protected  String getTitleMsg()
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected jaxx.runtime.JAXXContext context

i18nKey

protected String i18nKey

pb

protected AbstractProgressBarUI pb

showErrorDialog

protected boolean showErrorDialog
Constructor Detail

VradiTask

public VradiTask(jaxx.runtime.JAXXContext context)

VradiTask

public VradiTask(jaxx.runtime.JAXXContext context,
                 boolean showProgressBar)

VradiTask

public VradiTask(jaxx.runtime.JAXXContext context,
                 String i18nKey)

VradiTask

public VradiTask(jaxx.runtime.JAXXContext context,
                 boolean showProgressBar,
                 String i18nKey)

VradiTask

public VradiTask(jaxx.runtime.JAXXContext context,
                 AbstractProgressBarUI pb,
                 String i18nKey)

VradiTask

public VradiTask(jaxx.runtime.JAXXContext context,
                 AbstractProgressBarUI pb,
                 String i18nKey,
                 boolean showErrorDialog)
Method Detail

doInBackground

protected T doInBackground()
Specified by:
doInBackground in class SwingWorker<T,Void>

done

protected void done()
Overrides:
done in class SwingWorker<T,Void>

getTitleMsg

protected String getTitleMsg()

getMsg

protected String getMsg()

getErrorMsg

protected String getErrorMsg()

doAction

public abstract T doAction()
                    throws Exception
Throws:
Exception

doWhenDone

public void doWhenDone()
                throws Exception
Throws:
Exception

doWhenError

public void doWhenError(Exception eee)


Copyright © 2009-2010 JurisMarches. All Rights Reserved.