public class WPFMenuBase extends WPFItemsControl
| Modifier | Constructor and Description |
|---|---|
protected |
WPFMenuBase(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFMenuBase。
|
| Modifier and Type | Method and Description |
|---|---|
void |
check(ItemPath item)
选中菜单项目。
|
void |
check(String item)
选中菜单项目。
|
void |
select(ItemPath item)
选择菜单项目。
|
void |
select(String item)
选择菜单项目。
|
void |
uncheck(ItemPath item)
取消选中菜单项目。
|
void |
uncheck(String item)
取消选中菜单项目。
|
getItems, getItemTexts, hasItems, isTextSearchEnabledgetFontFamily, getFontSize, getTabIndex, isTabStopgetActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPositionbringIntoView, 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, 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 WPFMenuBase(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 WPFMenuBase 的句柄desktop - 此对象所在的桌面public void check(ItemPath item)
item - 可选中的菜单项目。可以是顶层菜单项目或可在子菜单中找到的项目。要选中子菜单中的菜单项目,请使用斜线分隔菜单项目名称。项目可包含通配符“?”(匹配一个字符)或“*”(匹配 0 至多个字符)。public void check(String item)
item - 可选中的菜单项目。可以是顶层菜单项目或可在子菜单中找到的项目。要选中子菜单中的菜单项目,请使用斜线分隔菜单项目名称。项目可包含通配符“?”(匹配一个字符)或“*”(匹配 0 至多个字符)。. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)。
public void select(ItemPath item)
item - 可选择的菜单项目。可以是顶层菜单项目或可在子菜单中找到的项目。要选择子菜单中的菜单项目,请使用斜线分隔菜单项目名称。项目可包含通配符“?”(匹配一个字符)或“*”(匹配 0 至多个字符)。public void select(String item)
item - 可选择的菜单项目。可以是顶层菜单项目或可在子菜单中找到的项目。要选择子菜单中的菜单项目,请使用斜线分隔菜单项目名称。项目可包含通配符“?”(匹配一个字符)或“*”(匹配 0 至多个字符)。. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)。
public void uncheck(ItemPath item)
item - 可取消选中的菜单项目。可以是顶层菜单项目或可在子菜单中找到的项目。要取消选中子菜单中的菜单项目,请使用斜线分隔菜单项目名称。项目可包含通配符“?”(匹配一个字符)或“*”(匹配 0 至多个字符)。public void uncheck(String item)
item - 可取消选中的菜单项目。可以是顶层菜单项目或可在子菜单中找到的项目。要取消选中子菜单中的菜单项目,请使用斜线分隔菜单项目名称。项目可包含通配符“?”(匹配一个字符)或“*”(匹配 0 至多个字符)。. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)。
Copyright 2009-2012 Micro Focus. All Rights Reserved.