java.lang.Object
org.omnifaces.resourcehandler.WebAppManifest.ImageResource
- Enclosing class:
- WebAppManifest
To be used in
WebAppManifest.getIcons().-
Method Summary
Modifier and TypeMethodDescriptionbooleangetSizes()Returns the supported sizes of this image resource.getSrc()Returns the source of this image resource.getType()Returns the content type of this image resource.inthashCode()static WebAppManifest.ImageResourceof(String resourceIdentifier, WebAppManifest.Size... sizes) Creates image resource of given resource identifier and sizes.
-
Method Details
-
of
public static WebAppManifest.ImageResource of(String resourceIdentifier, WebAppManifest.Size... sizes) Creates image resource of given resource identifier and sizes.- Parameters:
resourceIdentifier- The Faces resource identifier. E.g.library:path/name.pngsizes- The supported sizes of this image resource.- Returns:
- Image resource of given resource identifier and sizes.
- Throws:
NullPointerException- When resource identifier is null.IllegalArgumentException- When resource cannot be found.
-
getSrc
Returns the source of this image resource.- Returns:
- The source of this image resource.
-
getSizes
Returns the supported sizes of this image resource.- Returns:
- The supported sizes of this image resource.
-
getType
Returns the content type of this image resource.- Returns:
- The content type of this image resource.
-
equals
-
hashCode
public int hashCode()
-