public class WPFSelector extends WPFItemsControl
Modifier | Constructor and Description |
---|---|
protected |
WPFSelector(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFSelector with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
int |
getSelectedIndex()
Gets the index of the first item in the current selection or returns negative one (-1) if the selection is empty.
|
WPFBase |
getSelectedItem()
Gets the first item in the current selection or returns null if the selection is empty.
|
String |
getSelectedItemText()
Gets the text of the first item in the current selection or returns an empty string if the selection is empty.
|
void |
select(int itemIndex)
Selects an item in the ListBox.
|
void |
select(int itemIndex,
ModifierKey modifiers)
Selects an item in the ListBox.
|
void |
select(ItemIdentifier item)
Selects an item in the ListBox.
|
void |
select(ItemIdentifier item,
ModifierKey modifiers)
Selects an item in the ListBox.
|
void |
select(String itemText)
Selects an item in the ListBox.
|
void |
select(String itemText,
ModifierKey modifiers)
Selects an item in the ListBox.
|
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 WPFSelector(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFSelectordesktop
- the desktop on which this object livespublic void select(ItemIdentifier item)
item
- the item to selectpublic void select(ItemIdentifier item, ModifierKey modifiers)
item
- the item to selectmodifiers
- the modifier keys to press while selecting the item. Use a modifier to select multiple items in a multi-select ListBoxpublic void select(String itemText)
itemText
- the item to selectpublic void select(String itemText, ModifierKey modifiers)
itemText
- the item to selectmodifiers
- the modifier keys to press while selecting the item. Use a modifier to select multiple items in a multi-select ListBoxpublic void select(int itemIndex)
itemIndex
- the item to selectpublic void select(int itemIndex, ModifierKey modifiers)
itemIndex
- the item to selectmodifiers
- the modifier keys to press while selecting the item. Use a modifier to select multiple items in a multi-select ListBoxpublic int getSelectedIndex()
public WPFBase getSelectedItem()
public String getSelectedItemText()
Copyright 2009-2012 Micro Focus. All Rights Reserved.