- All Implemented Interfaces:
Runnable,Future<Boolean>,RunnableFuture<Boolean>
-
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
ConstructorsConstructorDescriptionPicasaUploaderWorker(PicasaUploadRequest myRequest, JProgressBar progressBar, PicasaUploaderDoneInterface doneHandler) Creates a SwingWorker to upload the pictures to Picasa -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateAlbum(GroupInfo groupInfo) Creates a group on Picasaprotected Booleanprotected voiddone()voidpostPicture(PictureInfo pictureInfo) Uploads a picture to Picasaprotected voidMethods 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
-
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:
doInBackgroundin classSwingWorker<Boolean,Integer>
-
process
- Overrides:
processin classSwingWorker<Boolean,Integer>
-
done
protected void done()- Overrides:
donein 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
-