public class SapPicture extends SapShell implements ISapContextMenuable
| Modifier | Constructor and Description |
|---|---|
protected |
SapPicture(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SapPicture。
|
| Modifier and Type | Method and Description |
|---|---|
void |
click()
单击图片。
|
void |
clickControlArea(int x,
int y)
单击指定位置。
|
void |
clickPictureArea(int x,
int y)
单击图片区域的指定位置。
|
void |
contextMenu(int x,
int y)
此功能将打开指定位置上的上下文菜单。
|
void |
doubleClick()
双击图片。
|
void |
doubleClickControlArea(int x,
int y)
双击指定位置。
|
void |
doubleClickPictureArea(int x,
int y)
双击图片区域的指定位置。
|
SapContextMenu |
getCurrentContextMenu()
获取 当前上下文菜单。
|
String |
getDisplayMode()
获取 图片显示模式,即“常规”、“拉伸”、“填充”、“NormalCenter”和“FitCenter”。
|
String |
getIcon()
获取 SAPGUI 图标代码,例如 ("@01@")。
|
String |
getUrl()
获取 图片的 URL。
|
void |
selectContextMenuItem(String functionCode)
选择控件上下文菜单中的项目。
|
void |
selectContextMenuItemByPosition(String positionDescription)
利用此方法可通过项目位置选择上下文菜单项目。
|
void |
selectContextMenuItemByText(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 SapPicture(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 SapPicture 的句柄desktop - 此对象所在的桌面public void click()
public void clickControlArea(int x,
int y)
x - x 坐标y - y 坐标public void clickPictureArea(int x,
int y)
x - x 坐标y - y 坐标public void contextMenu(int x,
int y)
x - x 坐标y - y 坐标public void doubleClick()
public void doubleClickControlArea(int x,
int y)
x - x 坐标y - y 坐标public void doubleClickPictureArea(int x,
int y)
x - x 坐标y - y 坐标public 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 SapContextMenu getCurrentContextMenu()
public String getDisplayMode()
public String getIcon()
public String getUrl()
Copyright 2009-2012 Micro Focus. All Rights Reserved.