Package com.atlassian.adf.model.node
Enum MediaSingle.WidthType
- java.lang.Object
-
- java.lang.Enum<MediaSingle.WidthType>
-
- com.atlassian.adf.model.node.MediaSingle.WidthType
-
- All Implemented Interfaces:
Serializable,Comparable<MediaSingle.WidthType>
- Enclosing class:
- MediaSingle
public static enum MediaSingle.WidthType extends Enum<MediaSingle.WidthType>
Determines whether thewidthattribute should be interpreted as a percentage or pixel count. Note that this is never set directly; it is instead set implicitly by which setter is used for the width.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PERCENTAGEPIXEL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaSingle.WidthTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MediaSingle.WidthType[]values()Returns an array containing the constants of this enum type, in the order they are declared.StringwidthType()
-
-
-
Enum Constant Detail
-
PERCENTAGE
public static final MediaSingle.WidthType PERCENTAGE
-
PIXEL
public static final MediaSingle.WidthType PIXEL
-
-
Method Detail
-
values
public static MediaSingle.WidthType[] 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 (MediaSingle.WidthType c : MediaSingle.WidthType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MediaSingle.WidthType 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 nameNullPointerException- if the argument is null
-
widthType
public String widthType()
-
-