- java.lang.Object
-
- org.omnifaces.resourcehandler.WebAppManifest.ImageResource
-
- Enclosing class:
- WebAppManifest
protected static final class WebAppManifest.ImageResource extends Object
To be used inWebAppManifest.getIcons()
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getSizes()
Returns the supported sizes of this image resource.String
getSrc()
Returns the source of this image resource.String
getType()
Returns the content type of this image resource.int
hashCode()
static WebAppManifest.ImageResource
of(String resourceIdentifier, WebAppManifest.Size... sizes)
Creates image resource of given resource identifier and sizes.
-
-
-
Method Detail
-
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.png
sizes
- 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
public String getSrc()
Returns the source of this image resource.- Returns:
- The source of this image resource.
-
getSizes
public String getSizes()
Returns the supported sizes of this image resource.- Returns:
- The supported sizes of this image resource.
-
getType
public String getType()
Returns the content type of this image resource.- Returns:
- The content type of this image resource.
-
-