com.openindex.openestate.tool
Class ImmoToolTask<ResultType>

java.lang.Object
  extended by javax.swing.SwingWorker<T,V>
      extended by org.jdesktop.application.Task<ResultType,Void>
          extended by com.openindex.openestate.tool.ImmoToolTask<ResultType>
Type Parameters:
ResultType - Rückgabe-Typ
All Implemented Interfaces:
Runnable, Future<ResultType>, RunnableFuture<ResultType>
Direct Known Subclasses:
AgencyContactViewTask, AgencyEstateContactTask, AgencyEstateStatusTask, AgencyEstateViewTask, AgencyExportTask, AgencyImportTask, CalendarEntryRemoveTask, CalendarEntryViewTask, CalendarSourceSyncTask, ContactsEntryExportVcardTask, ContactsEntryImportVCardTask, CsvExportTask, CsvImportTask, ImmoToolDbBackupTask, ImmoToolDbRestoreTask, ImmoToolLicenseTask, ImmoToolProjectCloseTask, ImmoToolProjectCreateTask, ImmoToolProjectOpenTask, ImmoToolTaskContainer, ImmoToolUpdateTask, XlsExportTask

public abstract class ImmoToolTask<ResultType>
extends org.jdesktop.application.Task<ResultType,Void>

Allgemeine Implementierung eines Task-Objektes gemäß JSR-296.
$Id: ImmoToolTask.java 1813 2012-10-07 04:50:29Z andy $

Author:
Andreas Rudolph

Nested Class Summary
static class ImmoToolTask.Callback
           
static interface ImmoToolTask.TaskMessageListener
           
 
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 javax.swing.SwingWorker
SwingWorker.StateValue
 
Field Summary
 
Fields inherited from class org.jdesktop.application.Task
PROP_COMPLETED, PROP_DESCRIPTION, PROP_DONE, PROP_INPUTBLOCKER, PROP_MESSAGE, PROP_STARTED, PROP_TASKSERVICE, PROP_TITLE, PROP_USERCANCANCEL
 
Constructor Summary
ImmoToolTask()
           
ImmoToolTask(String title)
           
 
Method Summary
 void addMessageListener(ImmoToolTask.TaskMessageListener l)
           
protected  void cancelled()
           
protected  void checkCancelled()
           
 ImmoToolTask.Callback createCallback()
           
protected  ResultType doInBackground()
           
protected abstract  ResultType executeTask()
           
protected  void failed(Throwable t)
           
protected  void finished()
           
 ImmoToolTaskDialog getTaskDialog()
           
 void removeMessageListener(ImmoToolTask.TaskMessageListener l)
           
protected  void setMessage(String msg)
           
 void setTaskDialog(ImmoToolTaskDialog taskDialog)
           
protected  void succeeded(ResultType result)
           
 
Methods inherited from class org.jdesktop.application.Task
addTaskListener, done, getApplication, getContext, getDescription, getExecutionDuration, getInputBlocker, getMessage, getMessageDuration, getResourceMap, getTaskListeners, getTaskService, getTitle, getUserCanCancel, interrupted, isPending, isProgressPropertyValid, isStarted, message, process, removeTaskListener, resourceName, setDescription, setInputBlocker, setProgress, setProgress, setProgress, setTitle, setUserCanCancel
 
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

ImmoToolTask

public ImmoToolTask()

ImmoToolTask

public ImmoToolTask(String title)
Method Detail

addMessageListener

public void addMessageListener(ImmoToolTask.TaskMessageListener l)

checkCancelled

protected void checkCancelled()
                       throws ImmoToolTaskCancelledException
Throws:
ImmoToolTaskCancelledException

createCallback

public ImmoToolTask.Callback createCallback()

doInBackground

protected final ResultType doInBackground()
                                   throws ImmoToolTaskException
Specified by:
doInBackground in class SwingWorker<ResultType,Void>
Throws:
ImmoToolTaskException

cancelled

protected void cancelled()
Overrides:
cancelled in class org.jdesktop.application.Task<ResultType,Void>

executeTask

protected abstract ResultType executeTask()
                                   throws Exception
Throws:
Exception

failed

protected void failed(Throwable t)
Overrides:
failed in class org.jdesktop.application.Task<ResultType,Void>

finished

protected void finished()
Overrides:
finished in class org.jdesktop.application.Task<ResultType,Void>

getTaskDialog

public ImmoToolTaskDialog getTaskDialog()

removeMessageListener

public void removeMessageListener(ImmoToolTask.TaskMessageListener l)

setMessage

protected void setMessage(String msg)
Overrides:
setMessage in class org.jdesktop.application.Task<ResultType,Void>

setTaskDialog

public void setTaskDialog(ImmoToolTaskDialog taskDialog)

succeeded

protected void succeeded(ResultType result)
Overrides:
succeeded in class org.jdesktop.application.Task<ResultType,Void>


Copyright © 2012 OpenEstate. All Rights Reserved.