- 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.StateValueNested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
ConstructorsConstructorDescriptionEmailer(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, setProgressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
doInBackgroundin classSwingWorker<String,String> - Returns:
- "Done"
-
done
protected void done()- Overrides:
donein classSwingWorker<String,String>
-
process
- Overrides:
processin classSwingWorker<String,String> - Parameters:
chunks- Chunks
-