public class SapComponent extends TestObject implements IFocusable
Modifier | Constructor and Description |
---|---|
protected |
SapComponent(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SapComponent。
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessibilityText()
获取 可访问性支持的其他文本。
|
String |
getAccessibilityTextOnRequest()
获取 可访问性支持的其他文本。
|
String |
getAccessibilityTooltip()
获取 可访问性支持的其他工具提示。
|
String |
getDefaultTooltip()
获取 从在指定屏幕元素类型的数据目录中定义的简短文本中生成的工具提示文本。
|
int |
getHeight()
获取 组件的当前高度。
|
String |
getIconName()
获取 如果对象已分配到图标,则此属性是图标的名称,否则它是空字符串。
|
int |
getLeft()
获取 屏幕坐标上元素的左侧位置。
|
String |
getName()
获取 组件的名称。
|
int |
getScreenLeft()
获取 屏幕坐标上组件的左侧位置。
|
int |
getScreenTop()
获取 屏幕坐标上组件的顶部位置。
|
String |
getTooltip()
获取 工具提示文本。
|
int |
getTop()
获取 屏幕坐标上元素的上坐标。
|
int |
getWidth()
获取 组件的当前宽度。
|
boolean |
isChangeable()
获取 对象是否可更改。
|
boolean |
isFocused()
返回控件是否有焦点。
|
boolean |
isModified()
获取 用户是否已更改状态并且此更改是否尚未发送至 SAP 系统。
|
boolean |
isSymbolFont()
获取 组件的文本是否以 SAP 符号字体显示。
|
void |
setFocus()
为控件分配焦点。
|
void |
showContextMenu()
显示控件的上下文菜单。
|
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 SapComponent(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SapComponent 的句柄desktop
- 此对象所在的桌面public boolean isFocused()
isFocused
in interface IFocusable
public void setFocus()
setFocus
in interface IFocusable
public void showContextMenu()
public String getAccessibilityText()
public String getAccessibilityTextOnRequest()
public String getAccessibilityTooltip()
public boolean isChangeable()
public String getDefaultTooltip()
public int getHeight()
public String getIconName()
public boolean isSymbolFont()
public int getLeft()
public boolean isModified()
public String getName()
public int getScreenLeft()
public int getScreenTop()
public String getTooltip()
public int getTop()
public int getWidth()
Copyright 2009-2012 Micro Focus. All Rights Reserved.