com.flexive.shared.value
Enum BinaryDescriptor.PreviewSizes

java.lang.Object
  extended by java.lang.Enum<BinaryDescriptor.PreviewSizes>
      extended by com.flexive.shared.value.BinaryDescriptor.PreviewSizes
All Implemented Interfaces:
ObjectWithLabel, java.io.Serializable, java.lang.Comparable<BinaryDescriptor.PreviewSizes>
Enclosing class:
BinaryDescriptor

public static enum BinaryDescriptor.PreviewSizes
extends java.lang.Enum<BinaryDescriptor.PreviewSizes>
implements ObjectWithLabel

Enumeration of all available preview sizes.


Enum Constant Summary
ORIGINAL
           
PREVIEW1
           
PREVIEW2
           
PREVIEW3
           
 
Method Summary
static BinaryDescriptor.PreviewSizes fromString(java.lang.String s)
          Get a previewSize from a numeric String
 int getBlobIndex()
          Get the blob index in the database containing the binary
 FxString getLabel()
          Return the localized label of the object.
 int getSize()
          Get the binary size constant
static BinaryDescriptor.PreviewSizes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BinaryDescriptor.PreviewSizes[] 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

PREVIEW1

public static final BinaryDescriptor.PreviewSizes PREVIEW1

PREVIEW2

public static final BinaryDescriptor.PreviewSizes PREVIEW2

PREVIEW3

public static final BinaryDescriptor.PreviewSizes PREVIEW3

ORIGINAL

public static final BinaryDescriptor.PreviewSizes ORIGINAL
Method Detail

values

public static BinaryDescriptor.PreviewSizes[] 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 (BinaryDescriptor.PreviewSizes c : BinaryDescriptor.PreviewSizes.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BinaryDescriptor.PreviewSizes valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getSize

public int getSize()
Get the binary size constant

Returns:
binary size constant

getBlobIndex

public int getBlobIndex()
Get the blob index in the database containing the binary

Returns:
blob index in the database containing the binary

getLabel

public FxString getLabel()
Return the localized label of the object.

Specified by:
getLabel in interface ObjectWithLabel
Returns:
the localized label for the object.

fromString

public static BinaryDescriptor.PreviewSizes fromString(java.lang.String s)
Get a previewSize from a numeric String

Parameters:
s - String with numeric size
Returns:
PreviewSizes