public enum ControlPosition extends Enum<ControlPosition>
TL | TC | TR |
LT | RT | |
LC | RC | |
LB | LB | |
BL | BC | BR |
Enum Constant and Description |
---|
BOTTOM_CENTER
Elements are positioned in the center of the bottom row.
|
BOTTOM_LEFT
Elements are positioned in the bottom left and flow towards the middle.
|
BOTTOM_RIGHT
Elements are positioned in the bottom right and flow towards the middle.
|
LEFT_BOTTOM
Elements are positioned on the left, above bottom-left elements, and flow upwards.
|
LEFT_CENTER
Elements are positioned in the center of the left side.
|
LEFT_TOP
Elements are positioned on the left, below top-left elements, and flow downwards.
|
RIGHT_BOTTOM
Elements are positioned on the right, above bottom-right elements, and flow upwards.
|
RIGHT_CENTER
Elements are positioned in the center of the right side.
|
RIGHT_TOP
Elements are positioned on the right, below top-right elements, and flow downwards.
|
TOP_CENTER
Elements are positioned in the center of the top row.
|
TOP_LEFT
Elements are positioned in the top left and flow towards the middle.
|
TOP_RIGHT
Elements are positioned in the top right and flow towards the middle.
|
Modifier and Type | Method and Description |
---|---|
static ControlPosition |
fromValue(int value)
reconstruct from position from javascript constant value
|
String |
getName()
returns enum name
|
String |
toString() |
int |
value()
returns javascript constant value
|
static ControlPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ControlPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControlPosition BOTTOM_CENTER
public static final ControlPosition BOTTOM_LEFT
public static final ControlPosition BOTTOM_RIGHT
public static final ControlPosition LEFT_BOTTOM
public static final ControlPosition LEFT_CENTER
public static final ControlPosition LEFT_TOP
public static final ControlPosition RIGHT_BOTTOM
public static final ControlPosition RIGHT_CENTER
public static final ControlPosition RIGHT_TOP
public static final ControlPosition TOP_CENTER
public static final ControlPosition TOP_LEFT
public static final ControlPosition TOP_RIGHT
public static ControlPosition[] values()
for (ControlPosition c : ControlPosition.values()) System.out.println(c);
public static ControlPosition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public int value()
public String toString()
toString
in class Enum<ControlPosition>
public static ControlPosition fromValue(int value)
value
- javascript constant valueCopyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.