public enum MenuAnchor extends Enum<MenuAnchor>
MenuAnchor
defines how the Menu
should be positioned
relatively to its associated button. There are four possible options :Enum Constant and Description |
---|
BOTTOM_LEFT
BOTTOM_LEFT sets the position the top left corner of the
Menu next to the bottom left corner of the action button. |
BOTTOM_RIGHT
BOTTOM_RIGHT sets the position the top right corner of
the Menu next to the bottom right corner of the action button. |
TOP_LEFT
|
TOP_RIGHT
|
Modifier and Type | Method and Description |
---|---|
static MenuAnchor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MenuAnchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MenuAnchor BOTTOM_LEFT
BOTTOM_LEFT
sets the position the top left corner of the
Menu
next to the bottom left corner of the action button.public static final MenuAnchor BOTTOM_RIGHT
BOTTOM_RIGHT
sets the position the top right corner of
the Menu
next to the bottom right corner of the action button.public static final MenuAnchor TOP_LEFT
public static final MenuAnchor TOP_RIGHT
public static MenuAnchor[] values()
for (MenuAnchor c : MenuAnchor.values()) System.out.println(c);
public static MenuAnchor 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 nullCopyright © 2016 com.github.ilyes4j. All rights reserved.