public class ImageUrlProvider extends UrlImageDescriptor implements IImageUrlProvider, ICacheable
Constructor and Description |
---|
ImageUrlProvider(java.io.File file)
Creates a new ImageUrlProvider from a file
|
ImageUrlProvider(java.lang.String url)
Creates a new ImageUrlProvider
|
ImageUrlProvider(java.net.URL url)
Creates a new ImageUrlProvider
|
Modifier and Type | Method and Description |
---|---|
void |
addCacheableListener(ICacheableListener listener) |
void |
release()
Releases the cacheable from the cache
|
void |
removeCacheableListener(ICacheableListener listener) |
getImageUrl, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getImageUrl
public ImageUrlProvider(java.io.File file)
file
- A File used to create the url fromjava.lang.IllegalArgumentException
- if the url is malformedpublic ImageUrlProvider(java.lang.String url)
url
- A String defining the urljava.lang.IllegalArgumentException
- if the url is malformedpublic ImageUrlProvider(java.net.URL url)
url
- The url to use, must not be nullpublic final void addCacheableListener(ICacheableListener listener)
addCacheableListener
in interface ICacheableObservable
public final void removeCacheableListener(ICacheableListener listener)
removeCacheableListener
in interface ICacheableObservable
public final void release()
ICacheable
release
in interface ICacheable
Siehe auch Jowidgets Nutzerhandbuch