Class ContactsEntryImportVCardTask
- java.lang.Object
-
- javax.swing.SwingWorker<T,V>
-
- com.openindex.openestate.tool.ImmoToolTask<Integer,Void>
-
- com.openindex.openestate.tool.contacts.ContactsEntryImportVCardTask
-
- All Implemented Interfaces:
PropertyChangeListener
,Runnable
,Future<Integer>
,RunnableFuture<Integer>
,EventListener
public class ContactsEntryImportVCardTask extends ImmoToolTask<Integer,Void>
ImmoToolTask
zum Import 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 ContactsEntryImportVCardTask(AbstractDbDriver dbDriver, DbContactsHandler contactsHandler, File importFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
contactWasImported(DbContactsEntry contact)
protected Integer
doInBackground()
protected DbContactsHandler
getContactsHandler()
protected AbstractDbDriver
getDbDriver()
File
getImportFile()
void
setImportGroup(DbContactsGroup importGroup)
protected void
writeVCardToContact(net.fortuna.ical4j.vcard.VCard vcard, DbContactsEntry contact)
-
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
-
ContactsEntryImportVCardTask
public ContactsEntryImportVCardTask(AbstractDbDriver dbDriver, DbContactsHandler contactsHandler, File importFile)
-
-
Method Detail
-
contactWasImported
protected void contactWasImported(DbContactsEntry contact)
-
getContactsHandler
protected DbContactsHandler getContactsHandler()
-
getDbDriver
protected AbstractDbDriver getDbDriver()
-
getImportFile
public File getImportFile()
-
doInBackground
protected Integer doInBackground() throws Exception
- Specified by:
doInBackground
in classImmoToolTask<Integer,Void>
- Throws:
Exception
-
setImportGroup
public void setImportGroup(DbContactsGroup importGroup)
-
writeVCardToContact
protected void writeVCardToContact(net.fortuna.ical4j.vcard.VCard vcard, DbContactsEntry contact)
-
-