org.apache.pivot.wtk.media
Class Image.LoadTask
java.lang.Object
org.apache.pivot.util.concurrent.Task<V>
org.apache.pivot.io.IOTask<Image>
org.apache.pivot.wtk.media.Image.LoadTask
- Enclosing class:
- Image
public static class Image.LoadTask
- extends IOTask<Image>
Task that executes an image load operation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Image.LoadTask
public Image.LoadTask(URL location)
Image.LoadTask
public Image.LoadTask(URL location,
ExecutorService executorService)
getLocation
public URL getLocation()
execute
public Image execute()
throws TaskExecutionException
- Description copied from class:
Task
- Synchronously executes the task.
- Specified by:
execute
in class Task<Image>
- Returns:
- The result of the task's execution.
- Throws:
TaskExecutionException
- If an error occurs while executing the task.