public class SapPicture extends SapShell implements ISapContextMenuable
| Modifier | Constructor and Description |
|---|---|
protected |
SapPicture(JtfObjectHandle handle,
Desktop desktop)
Creates a new SapPicture with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
click()
clicks on a picture.
|
void |
clickControlArea(int x,
int y)
clicks on the specified position.
|
void |
clickPictureArea(int x,
int y)
clicks on the specified position in the picture area.
|
void |
contextMenu(int x,
int y)
The function opens a context menu on the given position.
|
void |
doubleClick()
double clicks on the picture.
|
void |
doubleClickControlArea(int x,
int y)
double clicks on the specified position.
|
void |
doubleClickPictureArea(int x,
int y)
double clicks on the specified position in the picture area.
|
SapContextMenu |
getCurrentContextMenu()
Gets the current context menu.
|
String |
getDisplayMode()
Gets the display mode of the picture, i.e.
|
String |
getIcon()
Gets the SAPGUI icon code e.g.
|
String |
getUrl()
Gets the URL of the picture.
|
void |
selectContextMenuItem(String functionCode)
Select an item from the controls context menu.
|
void |
selectContextMenuItemByPosition(String positionDescription)
This method allows you to select a context menu item using the position of the item.
|
void |
selectContextMenuItemByText(String text)
Select a menu item of a context menu using the text of the item and possible higher level menus.
|
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 - the handle that identifies the SapPicturedesktop - the desktop on which this object livespublic void click()
public void clickControlArea(int x,
int y)
x - the x-coordinatey - the y-coordinatepublic void clickPictureArea(int x,
int y)
x - the x-coordinatey - the y-coordinatepublic void contextMenu(int x,
int y)
x - the x-coordinatey - the y-coordinatepublic void doubleClick()
public void doubleClickControlArea(int x,
int y)
x - the x-coordinatey - the y-coordinatepublic void doubleClickPictureArea(int x,
int y)
x - the x-coordinatey - the y-coordinatepublic void selectContextMenuItem(String functionCode)
selectContextMenuItem in interface ISapContextMenuablefunctionCode - the function codepublic void selectContextMenuItemByPosition(String positionDescription)
selectContextMenuItemByPosition in interface ISapContextMenuablepositionDescription - a string containing the path to the item. If the context menu item is on the top level menu, this is just the zero-base index of the item. Otherwise, the positions on the menu and respective submenus should be concatenated, separated by "|".public void selectContextMenuItemByText(String text)
selectContextMenuItemByText in interface ISapContextMenuabletext - the menu item textpublic SapContextMenu getCurrentContextMenu()
public String getDisplayMode()
public String getIcon()
public String getUrl()
Copyright 2009-2012 Micro Focus. All Rights Reserved.