com.openindex.openestate.tool.contacts
Class ContactsEntryExportXlsTask

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<ContactsEntry>
                  extended by com.openindex.openestate.tool.contacts.ContactsEntryExportXlsTask
All Implemented Interfaces:
ContactsEntryExportFields, Runnable, Future<Long>, RunnableFuture<Long>

public class ContactsEntryExportXlsTask
extends XlsExportTask<ContactsEntry>
implements ContactsEntryExportFields

ImmoToolTask zum Tabellenexport von Adressen im Excel-Format.
$Id: ContactsEntryExportXlsTask.java 1820 2012-10-09 23:23:46Z 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.contacts.ContactsEntryExportFields
ADDRESS_CITY, ADDRESS_CITY_PART, ADDRESS_COUNTRY, ADDRESS_LATITUDE, ADDRESS_LONGITUDE, ADDRESS_POSTALCODE, ADDRESS_REGION, ADDRESS_STREET, ADDRESS_STREETNR, COMPANY_BUSINESS, COMPANY_DEPARTMENT, COMPANY_FAX, COMPANY_MAIL, COMPANY_MOBILEPHONE, COMPANY_NAME, COMPANY_NAME_ADDITION, COMPANY_PHONE, COMPANY_POSITION, COMPANY_TYPE, COMPANY_WEBSITE, FIELDCOUNT, GROUP, NOTES, PERSON_FAX, PERSON_FIRSTNAME, PERSON_GENDER, PERSON_LASTNAME, PERSON_MAIL, PERSON_MIDDLENAME, PERSON_MOBILEPHONE, PERSON_PHONE, PERSON_TITLE
 
Constructor Summary
ContactsEntryExportXlsTask(File exportFile, Charset charset)
           
ContactsEntryExportXlsTask(File exportFile, Charset charset, Long groupId)
           
 
Method Summary
protected  String getFieldTitle(int index)
           
protected  int getHeadlineRowspan()
           
protected  String[] getHeadlineValues(int index)
           
protected  String[] loadEmptyContainer()
           
protected  ContactsEntry[] loadXlsObjects()
           
protected  void writeValues(ContactsEntry 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

ContactsEntryExportXlsTask

public ContactsEntryExportXlsTask(File exportFile,
                                  Charset charset)

ContactsEntryExportXlsTask

public ContactsEntryExportXlsTask(File exportFile,
                                  Charset charset,
                                  Long groupId)
Method Detail

getFieldTitle

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

getHeadlineRowspan

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

getHeadlineValues

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

loadEmptyContainer

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

loadXlsObjects

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

writeValues

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


Copyright © 2012 OpenEstate. All Rights Reserved.