com.openindex.openestate.tool.agency
Class AgencyEstateExportXlsTask

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<Long>
              extended by com.openindex.openestate.tool.utils.XlsExportTask<AgencyEstate>
                  extended by com.openindex.openestate.tool.agency.AgencyEstateExportXlsTask
All Implemented Interfaces:
AgencyEstateExportFields, Runnable, Future<Long>, RunnableFuture<Long>

public class AgencyEstateExportXlsTask
extends XlsExportTask<AgencyEstate>
implements AgencyEstateExportFields

ImmoToolTask zum Tabellenexport von Immobilien im Excel-Format.
$Id: AgencyEstateExportXlsTask.java 1843 2012-10-17 08:04:21Z 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
 
Fields inherited from interface com.openindex.openestate.tool.agency.AgencyEstateExportFields
ESTATE_ACTION, ESTATE_ADRESS_CITY, ESTATE_ADRESS_CITY_PART, ESTATE_ADRESS_COUNTRY, ESTATE_ADRESS_LATITUDE, ESTATE_ADRESS_LONGITUDE, ESTATE_ADRESS_POSTALCODE, ESTATE_ADRESS_REGION, ESTATE_ADRESS_STREET, ESTATE_ADRESS_STREETNR, ESTATE_ID, ESTATE_NR, ESTATE_STATUS, ESTATE_TITLE, ESTATE_TYPE, FIELDCOUNT
 
Constructor Summary
AgencyEstateExportXlsTask(File exportFile, Charset charset, OpenEstateType estateType, String estateAction, String estateStatus, Locale locale)
           
 
Method Summary
protected  String getFieldTitle(int index)
           
protected  int getHeadlineRowspan()
           
protected  String[] getHeadlineValues(int index)
           
protected  String[] loadEmptyContainer()
           
protected  AgencyEstate[] loadXlsObjects()
           
protected  void writeValues(AgencyEstate src, String[] dest)
           
 
Methods inherited from class com.openindex.openestate.tool.utils.XlsExportTask
createWorkbook, executeExport, executeTask, getFootlineFormat, getHeadlineFormat, getRow1Format, getRow2Format, writeValue
 
Methods inherited from class com.openindex.openestate.tool.ImmoToolTask
addMessageListener, cancelled, 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

AgencyEstateExportXlsTask

public AgencyEstateExportXlsTask(File exportFile,
                                 Charset charset,
                                 OpenEstateType estateType,
                                 String estateAction,
                                 String estateStatus,
                                 Locale locale)
Method Detail

getFieldTitle

protected String getFieldTitle(int index)
Specified by:
getFieldTitle in class XlsExportTask<AgencyEstate>

getHeadlineRowspan

protected int getHeadlineRowspan()
Overrides:
getHeadlineRowspan in class XlsExportTask<AgencyEstate>

getHeadlineValues

protected String[] getHeadlineValues(int index)
Overrides:
getHeadlineValues in class XlsExportTask<AgencyEstate>

loadEmptyContainer

protected String[] loadEmptyContainer()
Specified by:
loadEmptyContainer in class XlsExportTask<AgencyEstate>

loadXlsObjects

protected AgencyEstate[] loadXlsObjects()
                                 throws ImmoToolException
Specified by:
loadXlsObjects in class XlsExportTask<AgencyEstate>
Throws:
ImmoToolException

writeValues

protected void writeValues(AgencyEstate src,
                           String[] dest)
Specified by:
writeValues in class XlsExportTask<AgencyEstate>


Copyright © 2012 OpenEstate. All Rights Reserved.