- All Implemented Interfaces:
Runnable
,Future<Boolean>
,RunnableFuture<Boolean>
-
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
ConstructorDescriptionPicasaUploaderWorker
(PicasaUploadRequest myRequest, JProgressBar progressBar, PicasaUploaderDoneInterface doneHandler) Creates a SwingWorker to upload the pictures to Picasa -
Method Summary
Modifier and TypeMethodDescriptionboolean
createAlbum
(GroupInfo groupInfo) Creates a group on Picasaprotected Boolean
protected void
done()
void
postPicture
(PictureInfo pictureInfo) Uploads a picture to Picasaprotected void
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
-
PicasaUploaderWorker
public PicasaUploaderWorker(PicasaUploadRequest myRequest, JProgressBar progressBar, PicasaUploaderDoneInterface doneHandler) Creates a SwingWorker to upload the pictures to Picasa- Parameters:
myRequest
- the requestprogressBar
- the progress bardoneHandler
- the done handler to call afterwards
-
-
Method Details
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<Boolean,
Integer>
-
process
- Overrides:
process
in classSwingWorker<Boolean,
Integer>
-
done
protected void done()- Overrides:
done
in classSwingWorker<Boolean,
Integer>
-
createAlbum
Creates a group on Picasa- Parameters:
groupInfo
- the group for which to create the "album"- Returns:
- true if success, false if not
-
postPicture
Uploads a picture to Picasa- Parameters:
pictureInfo
- the picture to upload
-