org.richfaces.photoalbum.util
Enum ImageDimension
java.lang.Object
java.lang.Enum<ImageDimension>
org.richfaces.photoalbum.util.ImageDimension
- All Implemented Interfaces:
- Serializable, Comparable<ImageDimension>
public enum ImageDimension
- extends Enum<ImageDimension>
Convenience UI class for represent image object in different dimensions. Each image have 5 thumbnails with different
size, background style, file prefix, css class and background image. CurrentDimension field will be used to determine rendering parameters used during page rendering process
- Author:
- Andrey Markhel
SIZE_80
public static final ImageDimension SIZE_80
SIZE_120
public static final ImageDimension SIZE_120
SIZE_160
public static final ImageDimension SIZE_160
SIZE_200
public static final ImageDimension SIZE_200
SIZE_MEDIUM
public static final ImageDimension SIZE_MEDIUM
ORIGINAL
public static final ImageDimension ORIGINAL
values
public static ImageDimension[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ImageDimension c : ImageDimension.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ImageDimension valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getX
public int getX()
getCssClass
public String getCssClass()
getImageBg
public String getImageBg()
getImageBgStyle
public String getImageBgStyle()
getFilePostfix
public String getFilePostfix()
getInstance
public static ImageDimension getInstance(int x)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.