wjhk.jupload2.gui
Class LoadImageThread
java.lang.Object
java.lang.Thread
wjhk.jupload2.gui.LoadImageThread
- All Implemented Interfaces:
- Runnable
class LoadImageThread
- extends Thread
|
Field Summary |
(package private) File |
file
The file that is to be loaded. |
(package private) JUploadImagePreview |
jUploadImagePreview
The preview, where the resulting picture must be displayed. |
(package private) static Cursor |
waitCursor
That cursor that will be used each time the user select a new file, when
resizing the picture before displaying in the preview accessory. |
|
Method Summary |
void |
run()
The work itself: it allows the loading and resizing of the picture in a
separate thread, to avoid blocking the user interface. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
waitCursor
static final Cursor waitCursor
- That cursor that will be used each time the user select a new file, when
resizing the picture before displaying in the preview accessory.
file
File file
- The file that is to be loaded.
jUploadImagePreview
JUploadImagePreview jUploadImagePreview
- The preview, where the resulting picture must be displayed.
LoadImageThread
LoadImageThread(JUploadImagePreview jUploadImagePreview,
File file)
- Only constructor, with the file to be loaded.
- Parameters:
file - The file to load, once the thread is started.
run
public void run()
- The work itself: it allows the loading and resizing of the picture in a
separate thread, to avoid blocking the user interface.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread