- All Implemented Interfaces:
Runnable
,Future<String>
,RunnableFuture<String>
This thread sends the emails.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorDescriptionEmailer
(List<SortableDefaultMutableTreeNode> emailSelected, javax.mail.internet.InternetAddress senderAddress, javax.mail.internet.InternetAddress destinationAddress, String subjectLine, String bodyText, boolean scaleImages, Dimension scaleSize, boolean sendOriginal) Creates and starts a Thread that writes the picture nodes from the specified receivingNode to the target directory. -
Method Summary
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
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
Emailer
public Emailer(List<SortableDefaultMutableTreeNode> emailSelected, javax.mail.internet.InternetAddress senderAddress, javax.mail.internet.InternetAddress destinationAddress, String subjectLine, String bodyText, boolean scaleImages, Dimension scaleSize, boolean sendOriginal) Creates and starts a Thread that writes the picture nodes from the specified receivingNode to the target directory.- Parameters:
emailSelected
- List of nodes for emailingsenderAddress
- The sender addressdestinationAddress
- The destination AddresssubjectLine
- The subject linebodyText
- The body TextscaleImages
- Whether to scale imagesscaleSize
- The size to scale them tosendOriginal
- Whether to include originals
-
-
Method Details
-
doInBackground
This is where the SwingWorker does its stuff- Specified by:
doInBackground
in classSwingWorker<String,
String> - Returns:
- "Done"
-
done
protected void done()- Overrides:
done
in classSwingWorker<String,
String>
-
process
- Overrides:
process
in classSwingWorker<String,
String> - Parameters:
chunks
- Chunks
-