public class WPFMenuItem extends WPFHeaderedItemsControl
Modifier | Constructor and Description |
---|---|
protected |
WPFMenuItem(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFMenuItem。
|
Modifier and Type | Method and Description |
---|---|
void |
check()
选中菜单项目。
|
void |
closeSubmenu()
关闭子菜单(如果有)。
|
MenuItemRole |
getRole()
获取 表示 MenuItem 角色的值。
|
boolean |
hasSubmenu()
获取 菜单项目是否有子菜单。
|
boolean |
isChecked()
获取 表示 MenuItem 是否选中的值。
|
boolean |
isPressed()
获取 表示 MenuItem 是否已按下的值。
|
boolean |
isStaysOpenOnClick()
获取 表示单击项目时此 MenuItem 所在的子菜单不应关闭的值。
|
boolean |
isSubmenuOpen()
获取 表示 MenuItem 的子菜单是否已打开的值。
|
void |
openSubmenu()
打开子菜单(如果有)。
|
void |
select()
选择菜单项目。
|
void |
uncheck()
取消选中菜单项目。
|
getItems, getItemTexts, hasItems, isTextSearchEnabled
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, 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, waitForProperty
equals, 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, toString
protected WPFMenuItem(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 WPFMenuItem 的句柄desktop
- 此对象所在的桌面public void check()
public void closeSubmenu()
public void openSubmenu()
public void select()
public void uncheck()
public boolean hasSubmenu()
public boolean isChecked()
public boolean isPressed()
public boolean isSubmenuOpen()
public MenuItemRole getRole()
public boolean isStaysOpenOnClick()
Copyright 2009-2012 Micro Focus. All Rights Reserved.