public class SapComboBox extends SapComponent
Modifier | Constructor and Description |
---|---|
protected |
SapComboBox(JtfObjectHandle handle,
Desktop desktop)
Creates a new SapComboBox with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
int |
getCharHeight()
Gets the height of the element in character metric.
|
int |
getCharLeft()
Gets the left coordinate of the element in character metric.
|
int |
getCharTop()
Gets the top coordinate of the element in character metric.
|
int |
getCharWidth()
Gets the width of the element in character metric.
|
String |
getCurrentEntryKey()
the key of the current entry.
|
String |
getCurrentEntryValue()
the value of the current entry.
|
List<String> |
getEntryKeys()
a list of all entry keys.
|
List<String> |
getEntryValues()
a list of all entry values.
|
String |
getKey()
Gets the key of the currently selected item.
|
String |
getValue()
Gets the currently selected item.
|
boolean |
isFlushing()
Gets whether the value change causes a round trip.
|
boolean |
isLeftLabel()
Gets whether the component has the 'assign left' flag.
|
boolean |
isListBoxActive()
Gets whether the list box of the the combo box is currently open.
|
boolean |
isRequired()
Gets whether the component is a required value for the screen.
|
boolean |
isRightLabel()
Gets whether the component has the 'assign right' flag.
|
boolean |
isSymbolFont()
Gets whether the component's text is visualized in the SAP symbol font.
|
void |
selectItem(String item)
Selects the specified item.
|
void |
selectKey(String key)
Selects the list item with the specified 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
- the handle that identifies the SapComboBoxdesktop
- the desktop on which this object livespublic String getCurrentEntryKey()
public String getCurrentEntryValue()
public void selectItem(String item)
item
- the itempublic void selectKey(String key)
key
- the keypublic 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.