public class FlexMenu extends FlexObject
| Modifier | Constructor and Description |
|---|---|
protected |
FlexMenu(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexMenu。
|
| Modifier and Type | Method and Description |
|---|---|
List<Color> |
getAlternatingItemColors()
获取 以交替模式用于菜单或子菜单的菜单项目的颜色。
|
List<String> |
getColumnNames()
获取 包含数据中所有列的名称的列表。
|
int |
getFirstVisibleRow()
获取 第一个可见子级的索引。
|
int |
getLastVisibleRow()
获取 最后一个可见子级的索引。
|
int |
getNumColumns()
获取 可用数据中的总列数。
|
int |
getNumRows()
获取 可用数据的总行数。
|
List<Color> |
getRollOverColor()
获取 用户在项目上滚动鼠标时呈现的菜单项目背景颜色。
|
int |
getRowCount()
获取 可显示的行数。
|
int |
getSelectedIndex()
获取 所选项目的数据提供程序中的索引。
|
List<Color> |
getSelectionColor()
获取 菜单项目选中时呈现的菜单项目背景颜色。
|
List<Color> |
getTextRollOverColor()
获取 用户在菜单项目上滚动鼠标时呈现的菜单项目文本颜色。
|
List<Color> |
getTextSelectedColor()
获取 菜单项目选中时呈现的菜单项目文本颜色。
|
List<List<String>> |
getValues(int start,
int end)
返回矩阵,其包含所有组件部分的自动化值。
|
void |
hide()
菜单或子菜单解除时发送。
|
void |
select(String itemRenderer)
选择菜单项目时发送。
|
void |
show(String itemRenderer)
菜单或子菜单打开时发送。
|
void |
type(String keyCode)
用户按键时发送。
|
void |
type(String keyCode,
ModifierKey keyModifier)
用户按键时发送。
|
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocusclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeyscaptureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForPropertyequals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toStringprotected FlexMenu(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 FlexMenu 的句柄desktop - 此对象所在的桌面public List<List<String>> getValues(int start, int end)
返回值是一个行数组,每个行数组是一个项目数组。
start - 开始子级的索引。默认值为 0。end - 结束子级的索引。默认值为 0。public void hide()
public void select(String itemRenderer)
itemRenderer - 所选菜单项目的 ListItemRendererpublic void show(String itemRenderer)
itemRenderer - 此属性未为此事件类型设置public void type(String keyCode)
keyCode - 按下或松开的键的键码值public void type(String keyCode, ModifierKey keyModifier)
keyCode - 按下或松开的键的键码值keyModifier - 可使用的键修饰符(例如 Ctrl 键)public List<Color> getAlternatingItemColors()
值可以是两个或更多颜色的数组。此样式仅在未指定 backgroundColor 时使用。默认值为未定义。
public int getFirstVisibleRow()
public int getLastVisibleRow()
public int getNumColumns()
public int getNumRows()
public int getRowCount()
public int getSelectedIndex()
public List<Color> getTextRollOverColor()
Copyright 2009-2012 Micro Focus. All Rights Reserved.