public enum PlacementMode extends Enum<PlacementMode>
Enum Constant and Description |
---|
ABSOLUTE
Popup 控件相对于屏幕左上角的位置,且偏移量为 HorizontalOffset 和 VerticalOffset 属性的值。
|
ABSOLUTE_POINT
Popup 控件相对于屏幕左上角的位置,且偏移量为 HorizontalOffset 和 VerticalOffset 属性的值。
|
BOTTOM
Popup 控件顶端与 PlacementTarget 底部对齐、左端与 PlacementTarget 左端对齐的位置。
|
CENTER
Popup 控件相对于屏幕左上角的位置,且偏移量为 HorizontalOffset 和 VerticalOffset 属性的值。
|
CUSTOM
由 Popup 控件指定的 CustomPopupPlacementCallback 定义的 Popup 位置和重定位行为
|
LEFT
Popup 控件右端与 PlacementTarget 左端对齐、顶端与 PlacementTarget 顶端对齐的位置。
|
MOUSE
Popup 控件顶端与鼠标边界框的底部对齐、左端与鼠标边界框的左端对齐的位置。
|
MOUSE_POINT
Popup 控件相对于鼠标光标顶端的位置,且偏移量为 HorizontalOffset 和 VerticalOffset 属性的值。
|
RELATIVE
Popup 控件相对于 PlacementTarget 左上角的位置,且偏移量为 HorizontalOffset 和 VerticalOffset 属性的值。
|
RELATIVE_POINT
Popup 控件相对于 PlacementTarget 左上角的位置,且偏移量为 HorizontalOffset 和 VerticalOffset 属性的值。
|
RIGHT
Popup 控件左端与 PlacementTarget 右端对齐、顶端与 PlacementTarget 顶端对齐的位置。
|
TOP
Popup 控件底部与 PlacementTarget 顶端对齐、左端与 PlacementTarget 左端对齐的位置。
|
Modifier and Type | Method and Description |
---|---|
static PlacementMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlacementMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlacementMode ABSOLUTE
public static final PlacementMode RELATIVE
public static final PlacementMode BOTTOM
public static final PlacementMode CENTER
public static final PlacementMode RIGHT
public static final PlacementMode ABSOLUTE_POINT
public static final PlacementMode RELATIVE_POINT
public static final PlacementMode MOUSE
public static final PlacementMode MOUSE_POINT
public static final PlacementMode LEFT
public static final PlacementMode TOP
public static final PlacementMode CUSTOM
public static PlacementMode[] values()
for (PlacementMode c : PlacementMode.values()) System.out.println(c);
public static PlacementMode 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 2009-2012 Micro Focus. All Rights Reserved.