public abstract class ImageHolder extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<ImageSize,String> |
imageUrls |
Constructor and Description |
---|
ImageHolder() |
Modifier and Type | Method and Description |
---|---|
Set<ImageSize> |
availableSizes()
Returns a Set of all
ImageSize s available. |
String |
getImageURL(ImageSize size)
Returns the URL of the image in the specified size, or
null if not available. |
protected static void |
loadImages(ImageHolder holder,
DomElement element) |
public ImageHolder()
public Set<ImageSize> availableSizes()
ImageSize
s available.public String getImageURL(ImageSize size)
null
if not available.size
- The preferred sizeprotected static void loadImages(ImageHolder holder, DomElement element)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses