public enum ImageStyle extends java.lang.Enum<ImageStyle> implements ValueEnum
Enum Constant and Description |
---|
CENTER
Center (and don't stretch at all) the image if smaller than its enclosing frame.CENTER:"center",
|
NORMAL
Allow the image to have natural size
|
STRETCH
Stretch the image to the size of its enclosing frame.
|
TILE
Tile (repeat) the image if smaller than its enclosing frame.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static ImageStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageStyle CENTER
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "center".
public static final ImageStyle TILE
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "tile".
public static final ImageStyle STRETCH
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "stretch".
public static final ImageStyle NORMAL
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "normal".
public static ImageStyle[] values()
for (ImageStyle c : ImageStyle.values()) System.out.println(c);
public static ImageStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null