public class SapComponent extends TestObject implements IFocusable
Modifier | Constructor and Description |
---|---|
protected |
SapComponent(JtfObjectHandle handle,
Desktop desktop)
Creates a new SapComponent with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessibilityText()
Gets an additional text for accessibility support.
|
String |
getAccessibilityTextOnRequest()
Gets an additional text for accessibility support.
|
String |
getAccessibilityTooltip()
Gets an additional tooltip text for accessibility support.
|
String |
getDefaultTooltip()
Gets the tooltip text which is generated from the short text defined in the data dictionary for the given screen element type.
|
int |
getHeight()
Gets the current height of the component.
|
String |
getIconName()
Gets whether the object has been assigned an icon, then this property is the name of the icon, otherwise it is an empty string.
|
int |
getLeft()
Gets the left position of the element in screen coordinates.
|
String |
getName()
Gets the name of the component.
|
int |
getScreenLeft()
Gets the left position of the component in screen coordinates.
|
int |
getScreenTop()
Gets the top position of the component in screen coordinates.
|
String |
getTooltip()
Gets the tooltip text.
|
int |
getTop()
Gets the top coordinate of the element in screen coordinates.
|
int |
getWidth()
Gets the current width of the component.
|
boolean |
isChangeable()
Gets whether an object is changeable.
|
boolean |
isFocused()
Return whether the control has focus.
|
boolean |
isModified()
Gets whether the state has been changed by the user and this change has not yet been sent to the SAP system.
|
boolean |
isSymbolFont()
Gets whether the component's text is visualized in the SAP symbol font.
|
void |
setFocus()
Gives focus to the control.
|
void |
showContextMenu()
Shows the context menu of the control.
|
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
- the handle that identifies the SapComponentdesktop
- the desktop on which this object livespublic 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.