org.jboss.seam.ui.graphicImage
public static enum Image.Type extends Enum<Image.Type>
Enum Constant and Description |
---|
IMAGE_BMP |
IMAGE_GIF |
IMAGE_JPEG |
IMAGE_PNG |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAlternativeMimeTypes() |
String |
getExtension() |
protected String |
getImageFormatName() |
String |
getMimeType() |
static Image.Type |
getTypeByFormatName(String formatName) |
static Image.Type |
getTypeByMimeType(String mimeType) |
static Image.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Image.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Image.Type IMAGE_PNG
public static final Image.Type IMAGE_JPEG
public static final Image.Type IMAGE_GIF
public static final Image.Type IMAGE_BMP
public static Image.Type[] values()
for (Image.Type c : Image.Type.values()) System.out.println(c);
public static Image.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getMimeType()
public String getExtension()
protected String getImageFormatName()
public static Image.Type getTypeByMimeType(String mimeType)
public static Image.Type getTypeByFormatName(String formatName)
Copyright © 2015 Seam Framework. All Rights Reserved.