public class SapComboBox extends SapComponent
Modifier | Constructor and Description |
---|---|
protected |
SapComboBox(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SapComboBox。
|
Modifier and Type | Method and Description |
---|---|
int |
getCharHeight()
获取 元素的高度(字符度量)。
|
int |
getCharLeft()
获取 元素的左坐标(字符度量)。
|
int |
getCharTop()
获取 元素的上坐标(字符度量)。
|
int |
getCharWidth()
获取 元素的宽度(字符度量)。
|
String |
getCurrentEntryKey()
当前条目键。
|
String |
getCurrentEntryValue()
当前条目的值。
|
List<String> |
getEntryKeys()
所有条目键列表。
|
List<String> |
getEntryValues()
所有条目值列表。
|
String |
getKey()
获取 当前所选项目的键。
|
String |
getValue()
获取 当前所选项目。
|
boolean |
isFlushing()
获取 值更改是否会导致往返行程。
|
boolean |
isLeftLabel()
获取 组件是否具有“向左分配”标记。
|
boolean |
isListBoxActive()
获取 当前是否打开组合框的列表框。
|
boolean |
isRequired()
获取 组件是否是屏幕的必填值。
|
boolean |
isRightLabel()
获取 组件是否具有“向右分配”标记。
|
boolean |
isSymbolFont()
获取 组件的文本是否以 SAP 符号字体显示。
|
void |
selectItem(String item)
选择指定项目。
|
void |
selectKey(String key)
选择具有指定键的列表项目。
|
getAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, setFocus, showContextMenu
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, 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 SapComboBox(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SapComboBox 的句柄desktop
- 此对象所在的桌面public String getCurrentEntryKey()
public String getCurrentEntryValue()
public void selectItem(String item)
item
- 项目public void selectKey(String key)
key
- 键public int getCharHeight()
public int getCharLeft()
public int getCharTop()
public int getCharWidth()
public boolean isFlushing()
public boolean isLeftLabel()
public boolean isListBoxActive()
public boolean isRightLabel()
public boolean isSymbolFont()
isSymbolFont
in class SapComponent
public String getKey()
public boolean isRequired()
public String getValue()
getValue
in class TestObject
Copyright 2009-2012 Micro Focus. All Rights Reserved.