de.enough.polish.ui.tasks
Class ImageTask

java.lang.Object
  extended by java.util.TimerTask
      extended by de.enough.polish.ui.tasks.ImageTask
All Implemented Interfaces:
Runnable

public class ImageTask
extends TimerTask

Loads an Image in the background using a Timer.

The user needs to schedule this task at the timer himself/herself.

Author:
Robert Virkus, robert@enough.de
 history
        05-Jan-2004 - rob creation
 

Constructor Summary
ImageTask(String url)
          Creates a new ImageTask.
 
Method Summary
 void run()
          tries to load the image.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageTask

public ImageTask(String url)
Creates a new ImageTask.

Parameters:
url - the URL of the image, e.g. "/background.png"
Method Detail

run

public void run()
tries to load the image.

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask