Package resources
Class IconProvider
java.lang.Object
resources.IconProvider
A class that knows how to provide an icon and the URL for that icon. If
getUrl()
returns a non-null value, then that is the URL used to originally load the icon in this class.
If getUrl()
returns null, then getOrCreateUrl()
can be used to create a
value URL by writing out the image for this class's icon.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IconProvider
-
-
Method Details
-
getImage
-
isInvalid
public boolean isInvalid() -
getUrl
-
getOrCreateUrl
Returns the value ofgetUrl()
if it is non-null. Otherwise, this class will attempt to create a temporary file containing the image of this class in order to return a URL for that temp file. If a temporary file could not be created, then the URL returned from this class will point to thedefault icon
.- Returns:
- the URL
-