public enum FlexDirection extends java.lang.Enum<FlexDirection>
Enum Constant and Description |
---|
COLUMN
Elements are ordered left-to-right, top-to-bottom
|
COLUMN_REVERSE
Elements are ordered right-to-left, top-to-bottom
|
ROW
Elements are ordered top-to-bottom
|
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 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