public class SapHTMLViewer extends SapShell implements ISapContextMenuable
Modifier | Constructor and Description |
---|---|
protected |
SapHTMLViewer(JtfObjectHandle handle,
Desktop desktop)
Creates a new SapHTMLViewer with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
contextMenu()
Emulates the context menu request.
|
SapContextMenu |
getCurrentContextMenu()
Gets the current context menu.
|
int |
getWindowHandle()
Gets the window handle of the control that is connected to the GuiShell.
|
boolean |
isDocumentComplete()
Gets whether the document is complete.
|
void |
sapEvent(String frameName,
String postData,
String url)
This function submits an HTML form to the backend.
|
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.
|
isDragDropSupported
getAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, isSymbolFont, setFocus, 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 SapHTMLViewer(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SapHTMLViewerdesktop
- the desktop on which this object livespublic void contextMenu()
public void sapEvent(String frameName, String postData, String url)
frameName
- this is the name of the frame in which the HTML form that has been submitted livespostData
- contains the form data when a submit is made using the POST methodurl
- this is the URL which is submitted to the backend. The protocol name for the URL string is "sapevent:". This is followed by the name of the event as defined in the Action Property of the HTML form which is called.public void selectContextMenuItem(String functionCode)
selectContextMenuItem
in interface ISapContextMenuable
functionCode
- the function codepublic void selectContextMenuItemByPosition(String positionDescription)
selectContextMenuItemByPosition
in interface ISapContextMenuable
positionDescription
- 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 ISapContextMenuable
text
- the menu item textpublic SapContextMenu getCurrentContextMenu()
public boolean isDocumentComplete()
public int getWindowHandle()
Copyright 2009-2012 Micro Focus. All Rights Reserved.