cz.vity.freerapid.core.tasks
Class CoreTask<T,V>

java.lang.Object
  extended by org.jdesktop.swingworker.SwingWorker<T,V>
      extended by org.jdesktop.application.Task<T,V>
          extended by cz.vity.freerapid.core.tasks.CoreTask<T,V>
All Implemented Interfaces:
Runnable, Future<T>
Direct Known Subclasses:
CloseInTimeTask, DownloadTask, CheckForNewVersionTask, CheckPluginUpdateTask, MoveFileTask, SubmitErrorInfoTask

public abstract class CoreTask<T,V>
extends org.jdesktop.application.Task<T,V>

Author:
Vity

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.application.Task
org.jdesktop.application.Task.BlockingScope, org.jdesktop.application.Task.InputBlocker
 
Nested classes/interfaces inherited from class org.jdesktop.swingworker.SwingWorker
org.jdesktop.swingworker.SwingWorker.StateValue
 
Field Summary
(package private) static org.jdesktop.application.Task.InputBlocker inputBlocker
           
 
Constructor Summary
CoreTask(org.jdesktop.application.Application application)
           
CoreTask(org.jdesktop.application.Application application, org.jdesktop.application.ResourceMap resourceMap, String resourcePrefix)
           
 
Method Summary
protected  void failed(Throwable cause)
           
protected  JFrame getMainFrame()
           
 org.jdesktop.application.ResourceMap getTaskResourceMap()
           
protected  boolean handleRuntimeException(Throwable cause)
          Metoda overi, zda se jedna o Runtime
 void postMessage(String s, Object args)
           
protected  void setTaskToForeground()
           
 
Methods inherited from class org.jdesktop.application.Task
addTaskListener, cancelled, done, finished, getApplication, getContext, getDescription, getExecutionDuration, getInputBlocker, getMessage, getMessageDuration, getResourceMap, getTaskListeners, getTaskService, getTitle, getUserCanCancel, interrupted, isPending, isProgressPropertyValid, isStarted, message, process, removeTaskListener, resourceName, setDescription, setInputBlocker, setMessage, setProgress, setProgress, setProgress, setTitle, setUserCanCancel, succeeded
 
Methods inherited from class org.jdesktop.swingworker.SwingWorker
addPropertyChangeListener, cancel, doInBackground, 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
 

Field Detail

inputBlocker

static org.jdesktop.application.Task.InputBlocker inputBlocker
Constructor Detail

CoreTask

public CoreTask(org.jdesktop.application.Application application,
                org.jdesktop.application.ResourceMap resourceMap,
                String resourcePrefix)

CoreTask

public CoreTask(org.jdesktop.application.Application application)
Method Detail

getTaskResourceMap

public org.jdesktop.application.ResourceMap getTaskResourceMap()

postMessage

public void postMessage(String s,
                        Object args)

failed

protected void failed(Throwable cause)
Overrides:
failed in class org.jdesktop.application.Task<T,V>

getMainFrame

protected JFrame getMainFrame()

handleRuntimeException

protected boolean handleRuntimeException(Throwable cause)
Metoda overi, zda se jedna o Runtime

Parameters:
cause -
Returns:

setTaskToForeground

protected void setTaskToForeground()