public class WPFListBox extends WPFSelector
Modifier | Constructor and Description |
---|---|
protected |
WPFListBox(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFListBox。
|
Modifier and Type | Method and Description |
---|---|
void |
deselectAll()
清除多选 ListBox 中的选定内容。
|
WPFListBoxItem |
getSelectedItem()
获取 当前选定内容中的第一个项目,如果选定内容为空,则返回 null。
|
List<WPFListBoxItem> |
getSelectedItems()
获取 当前所选项目。
|
List<String> |
getSelectedItemTexts()
获取 包含每个当前所选项目的文本的字符串的列表。
|
SelectionMode |
getSelectionMode()
获取 ListBox 的选择行为。
|
void |
scrollIntoView(int itemIndex)
滚动项目至视图。
|
void |
scrollIntoView(ItemIdentifier item)
滚动项目至视图。
|
void |
scrollIntoView(String itemText)
滚动项目至视图。
|
void |
selectAll()
选择 ListBox 中的所有项目。
|
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, 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 WPFListBox(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 WPFListBox 的句柄desktop
- 此对象所在的桌面public void deselectAll()
public void scrollIntoView(ItemIdentifier item)
item
- 可滚动至视图的项目public void scrollIntoView(String itemText)
itemText
- 可滚动至视图的项目public void scrollIntoView(int itemIndex)
itemIndex
- 可滚动至视图的项目public void selectAll()
public WPFListBoxItem getSelectedItem()
getSelectedItem
in class WPFSelector
public List<WPFListBoxItem> getSelectedItems()
public SelectionMode getSelectionMode()
Copyright 2009-2012 Micro Focus. All Rights Reserved.