com.openindex.openestate.tool
Class ImmoToolTaskContainer

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<Boolean>
              extended by com.openindex.openestate.tool.ImmoToolTaskContainer
All Implemented Interfaces:
Runnable, Future<Boolean>, RunnableFuture<Boolean>
Direct Known Subclasses:
AgencyExportTaskContainer, AgencyExposeTask

public class ImmoToolTaskContainer
extends ImmoToolTask<Boolean>

ImmoToolTaskContainer.
$Id: ImmoToolTaskContainer.java 1813 2012-10-07 04:50:29Z andy $

Author:
Andreas Rudolph

Nested Class Summary
 
Nested classes/interfaces inherited from class com.openindex.openestate.tool.ImmoToolTask
ImmoToolTask.Callback, 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
ImmoToolTaskContainer()
           
ImmoToolTaskContainer(String title)
           
 
Method Summary
 void add(ImmoToolTask task)
           
protected  void cancelled()
           
protected  void cancelTask(ImmoToolTask task)
           
 int count()
           
protected  Boolean executeTask()
           
protected  void failTask(ImmoToolTask task, Throwable t)
           
protected  void finishTask(ImmoToolTask task)
           
 List<ImmoToolTask> getChildren()
           
 boolean isCancelOnFail()
           
 boolean isEmpty()
           
protected  void prepareTask(ImmoToolTask task)
           
 void setCancelOnFail(boolean cancelOnFail)
           
protected  void succeedTask(ImmoToolTask task, Object result)
           
 
Methods inherited from class com.openindex.openestate.tool.ImmoToolTask
addMessageListener, checkCancelled, createCallback, doInBackground, failed, finished, getTaskDialog, removeMessageListener, setMessage, setTaskDialog, succeeded
 
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

ImmoToolTaskContainer

public ImmoToolTaskContainer()

ImmoToolTaskContainer

public ImmoToolTaskContainer(String title)
Method Detail

add

public void add(ImmoToolTask task)

cancelled

protected void cancelled()
Overrides:
cancelled in class ImmoToolTask<Boolean>

cancelTask

protected void cancelTask(ImmoToolTask task)

count

public int count()

executeTask

protected Boolean executeTask()
                       throws Exception
Specified by:
executeTask in class ImmoToolTask<Boolean>
Throws:
Exception

failTask

protected void failTask(ImmoToolTask task,
                        Throwable t)

finishTask

protected void finishTask(ImmoToolTask task)

getChildren

public List<ImmoToolTask> getChildren()

isEmpty

public boolean isEmpty()

isCancelOnFail

public boolean isCancelOnFail()

prepareTask

protected void prepareTask(ImmoToolTask task)

setCancelOnFail

public void setCancelOnFail(boolean cancelOnFail)

succeedTask

protected void succeedTask(ImmoToolTask task,
                           Object result)


Copyright © 2012 OpenEstate. All Rights Reserved.