public class UrlImageDescriptor extends java.lang.Object implements IUrlImageDescriptor
Constructor and Description |
---|
UrlImageDescriptor(java.io.File file)
Creates a new UrlImageDescriptor from a file
|
UrlImageDescriptor(java.lang.String url)
Creates a new UrlImageDescriptor
|
UrlImageDescriptor(java.net.URL url)
Creates a new UrlImageDescriptor
|
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getImageUrl()
Gets the url that provides the image data
|
java.lang.String |
toString() |
public UrlImageDescriptor(java.io.File file)
file
- A File used to create the url fromjava.lang.IllegalArgumentException
- if the url is malformedpublic UrlImageDescriptor(java.lang.String url)
url
- A String defining the urljava.lang.IllegalArgumentException
- if the url is malformedpublic UrlImageDescriptor(java.net.URL url)
url
- The url to use, must not be nullpublic final java.net.URL getImageUrl()
IUrlImageDescriptor
getImageUrl
in interface IUrlImageDescriptor
public java.lang.String toString()
toString
in class java.lang.Object
Siehe auch Jowidgets Nutzerhandbuch