Package com.atlassian.adf.model.node
Enum RichMedia.Layout
- java.lang.Object
-
- java.lang.Enum<RichMedia.Layout>
-
- com.atlassian.adf.model.node.RichMedia.Layout
-
- All Implemented Interfaces:
Serializable,Comparable<RichMedia.Layout>
- Enclosing class:
- RichMedia
public static enum RichMedia.Layout extends Enum<RichMedia.Layout>
Layout that determines how the media idea should be positioned in relation to the flow of other information on the page.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALIGN_ENDALIGN_STARTCENTERAligns the image in the center of the content as a block.FULL_WIDTHStretches the image the entire width of the page (or the surrounding container, such as a table cell).WIDEAligns the image in the center of the content as a block, but expands into the default margins to produce a wider image.WRAP_LEFTProvide an image floated to the left of the page with text wrapped around it.WRAP_RIGHTProvide an image floated to the right of the page with text wrapped around it.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringlayout()static RichMedia.LayoutvalueOf(String name)Returns the enum constant of this type with the specified name.static RichMedia.Layout[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WRAP_LEFT
public static final RichMedia.Layout WRAP_LEFT
Provide an image floated to the left of the page with text wrapped around it.
-
CENTER
public static final RichMedia.Layout CENTER
Aligns the image in the center of the content as a block. This will be used by default if no layout is explicitly supplied.
-
WRAP_RIGHT
public static final RichMedia.Layout WRAP_RIGHT
Provide an image floated to the right of the page with text wrapped around it.
-
WIDE
public static final RichMedia.Layout WIDE
Aligns the image in the center of the content as a block, but expands into the default margins to produce a wider image.
-
FULL_WIDTH
public static final RichMedia.Layout FULL_WIDTH
Stretches the image the entire width of the page (or the surrounding container, such as a table cell).
-
ALIGN_START
public static final RichMedia.Layout ALIGN_START
-
ALIGN_END
public static final RichMedia.Layout ALIGN_END
-
-
Method Detail
-
values
public static RichMedia.Layout[] 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 (RichMedia.Layout c : RichMedia.Layout.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RichMedia.Layout 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
-
layout
public String layout()
-
-