Class ImageResource
- java.lang.Object
-
- com.github.bordertech.wcomponents.InternalResource
-
- com.github.bordertech.wcomponents.ImageResource
-
- All Implemented Interfaces:
ContentAccess
,ContentStreamAccess
,Image
,Serializable
public class ImageResource extends InternalResource implements Image
Provides a bridge to static image resources which are present in the class path, but not in the web application itself.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageResource(String imageResource)
Creates an imageResource.ImageResource(String imageResource, String description)
Creates an imageResource.ImageResource(String imageResource, String description, Dimension size)
Creates an imageResource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dimension
getSize()
-
Methods inherited from class com.github.bordertech.wcomponents.InternalResource
getBytes, getDescription, getMimeType, getResourceName, getStream, getTargetUrl, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.bordertech.wcomponents.ContentAccess
getBytes, getDescription, getMimeType
-
-
-
-
Constructor Detail
-
ImageResource
public ImageResource(String imageResource)
Creates an imageResource.- Parameters:
imageResource
- the resource name.
-
ImageResource
public ImageResource(String imageResource, String description)
Creates an imageResource.- Parameters:
imageResource
- the resource name.description
- the description of the image.
-
-