Class ContactsEntryExportVcardTask
- java.lang.Object
-
- javax.swing.SwingWorker<T,V>
-
- com.openindex.openestate.tool.ImmoToolTask<Long,Void>
-
- com.openindex.openestate.tool.contacts.ContactsEntryExportVcardTask
-
- All Implemented Interfaces:
PropertyChangeListener
,Runnable
,Future<Long>
,RunnableFuture<Long>
,EventListener
public class ContactsEntryExportVcardTask extends ImmoToolTask<Long,Void>
ImmoToolTask
zum Export von Adressen im VCard-Format.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.ImmoToolTask
ImmoToolTask.Adapter, ImmoToolTask.Callback, ImmoToolTask.Listener
-
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
-
Constructor Summary
Constructors Constructor Description ContactsEntryExportVcardTask(AbstractDbDriver dbDriver, DbContactsHandler contactsHandler, File exportFile, Charset charset)
ContactsEntryExportVcardTask(AbstractDbDriver dbDriver, DbContactsHandler contactsHandler, File exportFile, Charset charset, Long groupId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Long
doInBackground()
protected DbContactsHandler
getContactsHandler()
protected AbstractDbDriver
getDbDriver()
protected DbContactsEntry[]
loadContacts()
protected DbContactsEntry[]
loadContacts(Connection c, DbContactsHandler contactsHandler)
protected void
writeContactToVcard(DbContactsEntry contact, net.fortuna.ical4j.vcard.VCard vcard)
-
Methods inherited from class com.openindex.openestate.tool.ImmoToolTask
addListener, cancelled, checkCancelled, createCallback, done, executeAndWait, executeAndWait, failed, finished, getDescription, getId, getMessage, getParentWindow, getTaskDialog, getTitle, isCancelException, isPending, isStarted, process, propertyChange, removeListener, setDescription, setMessage, setParentWindow, setProgress, setProgress, setProgress, setProgress, setTaskDialog, setTitle, succeeded
-
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
-
-
-
-
Constructor Detail
-
ContactsEntryExportVcardTask
public ContactsEntryExportVcardTask(AbstractDbDriver dbDriver, DbContactsHandler contactsHandler, File exportFile, Charset charset)
-
ContactsEntryExportVcardTask
public ContactsEntryExportVcardTask(AbstractDbDriver dbDriver, DbContactsHandler contactsHandler, File exportFile, Charset charset, Long groupId)
-
-
Method Detail
-
doInBackground
protected Long doInBackground() throws Exception
- Specified by:
doInBackground
in classImmoToolTask<Long,Void>
- Throws:
Exception
-
getContactsHandler
protected DbContactsHandler getContactsHandler()
-
getDbDriver
protected AbstractDbDriver getDbDriver()
-
loadContacts
protected DbContactsEntry[] loadContacts() throws SQLException
- Throws:
SQLException
-
loadContacts
protected DbContactsEntry[] loadContacts(Connection c, DbContactsHandler contactsHandler) throws SQLException
- Throws:
SQLException
-
writeContactToVcard
protected void writeContactToVcard(DbContactsEntry contact, net.fortuna.ical4j.vcard.VCard vcard)
-
-