public class WPFListBox extends WPFSelector
| Modifier | Constructor and Description |
|---|---|
protected |
WPFListBox(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFListBox with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deselectAll()
Clears the selections in multi-select ListBox.
|
WPFListBoxItem |
getSelectedItem()
Gets the first item in the current selection or returns null if the selection is empty.
|
List<WPFListBoxItem> |
getSelectedItems()
Gets the currently selected items.
|
List<String> |
getSelectedItemTexts()
Gets a list of string containing the text of every currently selected item.
|
SelectionMode |
getSelectionMode()
Gets the selection behavior for a ListBox.
|
void |
scrollIntoView(int itemIndex)
Scrolls an item into view.
|
void |
scrollIntoView(ItemIdentifier item)
Scrolls an item into view.
|
void |
scrollIntoView(String itemText)
Scrolls an item into view.
|
void |
selectAll()
Selects all the items in the ListBox.
|
getSelectedIndex, getSelectedItemText, select, select, select, select, select, selectgetItems, getItemTexts, hasItems, isTextSearchEnabledgetFontFamily, getFontSize, getTabIndex, isTabStopgetActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPositionbringIntoView, 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, typePasswordKeyscaptureBitmap, 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, waitForPropertyequals, 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, toStringprotected WPFListBox(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the WPFListBoxdesktop - the desktop on which this object livespublic void deselectAll()
public void scrollIntoView(ItemIdentifier item)
item - the item to scroll into viewpublic void scrollIntoView(String itemText)
itemText - the item to scroll into viewpublic void scrollIntoView(int itemIndex)
itemIndex - the item to scroll into viewpublic void selectAll()
public WPFListBoxItem getSelectedItem()
getSelectedItem in class WPFSelectorpublic List<WPFListBoxItem> getSelectedItems()
public List<String> getSelectedItemTexts()
public SelectionMode getSelectionMode()
Copyright 2009-2012 Micro Focus. All Rights Reserved.