- 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.SizeSIZE_120120x120static WebAppManifest.SizeSIZE_128128x128static WebAppManifest.SizeSIZE_144144x144static WebAppManifest.SizeSIZE_152152x152static WebAppManifest.SizeSIZE_1616x16static WebAppManifest.SizeSIZE_168168x168static WebAppManifest.SizeSIZE_180180x180static WebAppManifest.SizeSIZE_192192x192static WebAppManifest.SizeSIZE_256256x256static WebAppManifest.SizeSIZE_3232x32static WebAppManifest.SizeSIZE_384384x384static WebAppManifest.SizeSIZE_4848x48static WebAppManifest.SizeSIZE_512512x512static WebAppManifest.SizeSIZE_6464x64static WebAppManifest.SizeSIZE_7272x72static WebAppManifest.SizeSIZE_9696x96
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)StringgetValue()Returns the value of this size.inthashCode()static WebAppManifest.Sizeof(int value)Creates a size having same width and height of given value.static WebAppManifest.Sizeof(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.
-
-