RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.util
Enum ImageDimension

java.lang.Object
  extended by java.lang.Enum<ImageDimension>
      extended by 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

Enum Constant Summary
ORIGINAL
           
SIZE_120
           
SIZE_160
           
SIZE_200
           
SIZE_80
           
SIZE_MEDIUM
           
 
Method Summary
 String getCssClass()
           
 String getFilePostfix()
           
 String getImageBg()
           
 String getImageBgStyle()
           
static ImageDimension getInstance(int x)
           
 int getX()
           
static ImageDimension valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImageDimension[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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)

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.