public class WPFComboBox extends WPFSelector
某些组合框(即在内部使用项目源的组合框)要求先打开一次组合框,然后才能在测试下的应用程序中使用项目。
Modifier | Constructor and Description |
---|---|
protected |
WPFComboBox(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFComboBox。
|
Modifier and Type | Method and Description |
---|---|
void |
close()
关闭 ComboBox。
|
double |
getMaxDropDownHeight()
获取 组合框下列菜单的最大高度。
|
WPFComboBoxItem |
getSelectedItem()
获取 当前选定内容中的第一个项目,如果选定内容为空,则返回 null。
|
String |
getText()
获取 ComboBox 的文本。
|
boolean |
isDropDownOpen()
获取 表示组合框的下拉菜单当前是否处于打开状态的值。
|
boolean |
isEditable()
获取 启用或禁用 ComboBox 中文本框的文本编辑的值。
|
boolean |
isReadOnly()
获取 组合框是否处于仅选择模式,在此模式下组合框的内容可选但不可编辑。
|
boolean |
isStaysOpenOnEdit()
获取 ComboBox 是否已打开并显示下拉菜单,用户单击 TextBox 前此控件将一直处于打开状态。
|
void |
open()
打开 ComboBox。
|
getSelectedIndex, getSelectedItemText, select, select, select, select, select, select
getItems, getItemTexts, hasItems, isTextSearchEnabled
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, 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 WPFComboBox(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 WPFComboBox 的句柄desktop
- 此对象所在的桌面public void close()
public void open()
public boolean isDropDownOpen()
public boolean isEditable()
public boolean isReadOnly()
public double getMaxDropDownHeight()
public WPFComboBoxItem getSelectedItem()
getSelectedItem
in class WPFSelector
public boolean isStaysOpenOnEdit()
public String getText()
getText
in class TestObject
Copyright 2009-2012 Micro Focus. All Rights Reserved.