- java.lang.Object
-
- org.omnifaces.resourcehandler.WebAppManifest.Screenshot
-
- Enclosing class:
- WebAppManifest
protected static final class WebAppManifest.Screenshot extends Object
To be used inWebAppManifest.getScreenshots()
- Version:
- 4.5
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
WebAppManifest.ScreenshotFormFactor
getFormFactor()
String
getSizes()
String
getSrc()
String
getType()
int
hashCode()
static WebAppManifest.Screenshot
of(String resourceIdentifier, WebAppManifest.ScreenshotFormFactor formFactor, WebAppManifest.Size... sizes)
Creates a screenshot image resource of given resource identifier and sizes.
-
-
-
Method Detail
-
getSrc
public String getSrc()
-
getSizes
public String getSizes()
-
getType
public String getType()
-
getFormFactor
public WebAppManifest.ScreenshotFormFactor getFormFactor()
-
of
public static WebAppManifest.Screenshot of(String resourceIdentifier, WebAppManifest.ScreenshotFormFactor formFactor, WebAppManifest.Size... sizes)
Creates a screenshot image resource of given resource identifier and sizes.- Parameters:
resourceIdentifier
- The Faces resource identifier. E.g.library:path/name.png
formFactor
- The supportedWebAppManifest.ScreenshotFormFactor
(wide or narrow).- Returns:
- Screenshot resource of given resource identifier and sizes.
- Throws:
NullPointerException
- When resource identifier is null.IllegalArgumentException
- When resource cannot be found.
-
-