public class SapToolbarControl extends SapShell implements ISapContextMenuable
| Modifier | Constructor and Description |
|---|---|
protected |
SapToolbarControl(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SapToolbarControl。
|
| Modifier and Type | Method and Description |
|---|---|
int |
getButtonCount()
获取 工具栏按钮的数量,包括分隔符。
|
String |
getButtonIcon(int buttonPosition)
指定工具栏按钮的图标名称。
|
ToolBarButtonType |
getButtonType(int buttonPosition)
指定工具栏按钮的类型。
|
int |
getChangeable()
获取 控件是否可更改。
|
SapContextMenu |
getCurrentContextMenu()
获取 当前上下文菜单。
|
int |
getDragDropSupported()
获取 外壳是否支持拖放操作。
|
int |
getFocusedButton()
获取 当前具有焦点的按钮的零基索引。
|
int |
getWindowHandle()
获取 与 GuiShell 连接的控件的窗口句柄。
|
boolean |
isButtonChecked(int buttonPosition)
如果按钮当前已选中(已按下)。
|
boolean |
isButtonEnabled(int buttonPosition)
按钮是否可以按下。
|
void |
pressContextButton(String id)
按下具有指定 id 的上下文按钮。
|
void |
selectButton(String id)
模拟按下具有指定 id 的按钮。
|
void |
selectContextMenuItem(String functionCode)
选择控件上下文菜单中的项目。
|
void |
selectContextMenuItemByPosition(String positionDescription)
利用此方法可通过项目位置选择上下文菜单项目。
|
void |
selectContextMenuItemByText(String text)
使用项目文本和可能的更高层菜单选择上下文菜单的菜单项目。
|
void |
selectMenuItem(String id)
模拟选择具有指定 id 的菜单项目。
|
void |
selectMenuItemByText(String text)
模拟按菜单项目文本选择菜单项目。
|
isDragDropSupportedgetAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, isSymbolFont, setFocus, showContextMenucaptureBitmap, 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 SapToolbarControl(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 SapToolbarControl 的句柄desktop - 此对象所在的桌面public String getButtonIcon(int buttonPosition)
buttonPosition - 零基按钮位置public ToolBarButtonType getButtonType(int buttonPosition)
buttonPosition - 零基按钮位置public boolean isButtonChecked(int buttonPosition)
buttonPosition - 零基按钮位置public boolean isButtonEnabled(int buttonPosition)
buttonPosition - 零基按钮位置public void pressContextButton(String id)
id - 按钮的 IDpublic void selectButton(String id)
id - 按钮的 IDpublic void selectContextMenuItem(String functionCode)
selectContextMenuItem in interface ISapContextMenuablefunctionCode - 函数代码public void selectContextMenuItemByPosition(String positionDescription)
selectContextMenuItemByPosition in interface ISapContextMenuablepositionDescription - 包含项目路径的字符串。如果上下文菜单项目在顶层菜单中,则这仅是项目的零基索引。否则,菜单中的位置和各自子菜单应用“|”分隔串联。public void selectContextMenuItemByText(String text)
selectContextMenuItemByText in interface ISapContextMenuabletext - 菜单项目文本public void selectMenuItem(String id)
id - 菜单的 IDpublic void selectMenuItemByText(String text)
text - 菜单项目的文本public int getButtonCount()
public int getChangeable()
public SapContextMenu getCurrentContextMenu()
public int getDragDropSupported()
public int getFocusedButton()
public int getWindowHandle()
Copyright 2009-2012 Micro Focus. All Rights Reserved.