- 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 booleanequals(Object object)StringgetSizes()Returns the supported sizes of this image resource.StringgetSrc()Returns the source of this image resource.StringgetType()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 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.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
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.
-
-