Package org.omnifaces.resourcehandler
Class WebAppManifest.Size
- java.lang.Object
-
- org.omnifaces.resourcehandler.WebAppManifest.Size
-
- Enclosing class:
- WebAppManifest
protected static final class WebAppManifest.Size extends Object
To be used inWebAppManifest.ImageResource.getSizes()
.
-
-
Field Summary
Fields Modifier and Type Field Description static WebAppManifest.Size
SIZE_120
120x120static WebAppManifest.Size
SIZE_128
128x128static WebAppManifest.Size
SIZE_144
144x144static WebAppManifest.Size
SIZE_152
152x152static WebAppManifest.Size
SIZE_16
16x16static WebAppManifest.Size
SIZE_168
168x168static WebAppManifest.Size
SIZE_180
180x180static WebAppManifest.Size
SIZE_192
192x192static WebAppManifest.Size
SIZE_256
256x256static WebAppManifest.Size
SIZE_32
32x32static WebAppManifest.Size
SIZE_384
384x384static WebAppManifest.Size
SIZE_48
48x48static WebAppManifest.Size
SIZE_512
512x512static WebAppManifest.Size
SIZE_64
64x64static WebAppManifest.Size
SIZE_72
72x72static WebAppManifest.Size
SIZE_96
96x96
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getValue()
Returns the value of this size.int
hashCode()
static WebAppManifest.Size
of(int value)
Creates a size having same width and height of given value.static WebAppManifest.Size
of(int width, int height)
Creates a size of given width and height.
-
-
-
Field Detail
-
SIZE_16
public static final WebAppManifest.Size SIZE_16
16x16
-
SIZE_32
public static final WebAppManifest.Size SIZE_32
32x32
-
SIZE_48
public static final WebAppManifest.Size SIZE_48
48x48
-
SIZE_64
public static final WebAppManifest.Size SIZE_64
64x64
-
SIZE_72
public static final WebAppManifest.Size SIZE_72
72x72
-
SIZE_96
public static final WebAppManifest.Size SIZE_96
96x96
-
SIZE_120
public static final WebAppManifest.Size SIZE_120
120x120
-
SIZE_128
public static final WebAppManifest.Size SIZE_128
128x128
-
SIZE_144
public static final WebAppManifest.Size SIZE_144
144x144
-
SIZE_152
public static final WebAppManifest.Size SIZE_152
152x152
-
SIZE_168
public static final WebAppManifest.Size SIZE_168
168x168
-
SIZE_180
public static final WebAppManifest.Size SIZE_180
180x180
-
SIZE_192
public static final WebAppManifest.Size SIZE_192
192x192
-
SIZE_256
public static final WebAppManifest.Size SIZE_256
256x256
-
SIZE_384
public static final WebAppManifest.Size SIZE_384
384x384
-
SIZE_512
public static final WebAppManifest.Size SIZE_512
512x512
-
-
Method Detail
-
of
public static WebAppManifest.Size of(int value)
Creates a size having same width and height of given value.- Parameters:
value
- The value.- Returns:
- A size having same width and height of given value.
- Throws:
IllegalArgumentException
- When value is 0 or less.
-
of
public static WebAppManifest.Size of(int width, int height)
Creates a size of given width and height.- Parameters:
width
- The width.height
- The height.- Returns:
- A size of given width and height.
- Throws:
IllegalArgumentException
- When width or height is 0 or less.
-
getValue
public String getValue()
Returns the value of this size.- Returns:
- The value of this size.
-
-