|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ControlPosition>
com.google.gwt.maps.client.controls.ControlPosition
public enum ControlPosition
Identifiers used to specify the placement of controls on the map. Controls are positioned relative to other controls in the same layout position. Controls that are added first are positioned closer to the edge of the map.
TL | TC | TR |
LT | RT | |
LC | RC | |
LB | LB | |
BL | BC | BR |
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- 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 value
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |