public enum FlexDirection extends java.lang.Enum<FlexDirection>
Enum Constant and Description |
---|
CENTER
Child elements are placed on top of each other in the center of the parent
|
COLUMN
Child elements are ordered left-to-right, top-to-bottom
|
COLUMN_REVERSE
Child elements are ordered right-to-left, top-to-bottom
|
ROW
Child elements are ordered top-to-bottom
|
ROW_REVERSE
Child elements are ordered bottom-to-top
|
Modifier and Type | Method and Description |
---|---|
abstract void |
layout(LayoutState layoutState,
ParentRenderNode<?,?> parentNode,
java.util.List<RenderNode<?,?>> children)
Executes the layout of children inside a parent render node
|
static FlexDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlexDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlexDirection COLUMN
public static final FlexDirection COLUMN_REVERSE
public static final FlexDirection ROW
public static final FlexDirection ROW_REVERSE
public static final FlexDirection CENTER
public static FlexDirection[] values()
for (FlexDirection c : FlexDirection.values()) System.out.println(c);
public static FlexDirection 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 nullpublic abstract void layout(LayoutState layoutState, ParentRenderNode<?,?> parentNode, java.util.List<RenderNode<?,?>> children)
layoutState
- The current LayoutState
parentNode
- The parent render nodechildren
- The children of the parent that require layout