public class ListBox extends Control
| Modifier | Constructor and Description |
|---|---|
protected |
ListBox(JtfObjectHandle handle,
Desktop desktop)
Creates a new ListBox with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doubleSelect(int itemIndex)
Double-clicks an item in the list box.
|
void |
doubleSelect(int itemIndex,
ModifierKey modifiers)
Double-clicks an item in the list box.
|
void |
doubleSelect(ItemIdentifier item)
Double-clicks an item in the list box.
|
void |
doubleSelect(ItemIdentifier item,
ModifierKey modifiers)
Double-clicks an item in the list box.
|
void |
doubleSelect(String itemText)
Double-clicks an item in the list box.
|
void |
doubleSelect(String itemText,
ModifierKey modifiers)
Double-clicks an item in the list box.
|
void |
extendSelect(int itemIndex)
Selects a range of items by extending the selection in the list box.
|
void |
extendSelect(ItemIdentifier item)
Selects a range of items by extending the selection in the list box.
|
void |
extendSelect(String itemText)
Selects a range of items by extending the selection in the list box.
|
int |
getItemCount()
Gets the number of items in the list box.
|
List<ItemIdentifier> |
getItems()
Gets a list of items in the list box.
|
int |
getSelectedIndex()
Gets the index of the first selected item.
|
List<Integer> |
getSelectedIndices()
Gets the indices of the selected item(s).
|
ItemIdentifier |
getSelectedItem()
Gets the name of the first selected item.
|
List<ItemIdentifier> |
getSelectedItems()
Gets the names of the selected item(s).
|
boolean |
isAllowsMultiSelect()
Gets whether the control supports selecting multiple items.
|
void |
multiSelect(int itemIndex)
Selects an item in the multi- or extend-selection list box.
|
void |
multiSelect(ItemIdentifier item)
Selects an item in the multi- or extend-selection list box.
|
void |
multiSelect(String itemText)
Selects an item in the multi- or extend-selection list box.
|
void |
multiUnselect(int itemIndex)
Unselects an item in the multi- or extend-selection list box.
|
void |
multiUnselect(ItemIdentifier item)
Unselects an item in the multi- or extend-selection list box.
|
void |
multiUnselect(String itemText)
Unselects an item in the multi- or extend-selection list box.
|
void |
select(int itemIndex)
Selects an item from the list box.
|
void |
select(ItemIdentifier item)
Selects an item from the list box.
|
void |
select(String itemText)
Selects an item from the list box.
|
void |
selectRange(int selectRangeBeginIndex,
int selectRangeEndIndex)
Selects a range of items in the extend-selection list box.
|
void |
selectRange(int selectRangeBeginIndex,
ItemIdentifier selectRangeEnd)
Selects a range of items in the extend-selection list box.
|
void |
selectRange(int selectRangeBeginIndex,
String selectRangeEndText)
Selects a range of items in the extend-selection list box.
|
void |
selectRange(ItemIdentifier selectRangeBegin,
int selectRangeEndIndex)
Selects a range of items in the extend-selection list box.
|
void |
selectRange(ItemIdentifier selectRangeBegin,
ItemIdentifier selectRangeEnd)
Selects a range of items in the extend-selection list box.
|
void |
selectRange(ItemIdentifier selectRangeBegin,
String selectRangeEndText)
Selects a range of items in the extend-selection list box.
|
void |
selectRange(String selectRangeBeginText,
int selectRangeEndIndex)
Selects a range of items in the extend-selection list box.
|
void |
selectRange(String selectRangeBeginText,
ItemIdentifier selectRangeEnd)
Selects a range of items in the extend-selection list box.
|
void |
selectRange(String selectRangeBeginText,
String selectRangeEndText)
Selects a range of items in the extend-selection list box.
|
void |
setSelectedIndex(int selectedIndex)
Sets the index of the first selected item.
|
void |
setSelectedIndices(List<Integer> selectedIndices)
Sets the indices of the selected item(s).
|
void |
setSelectedItem(int selectedItemIndex)
Sets the name of the first selected item.
|
void |
setSelectedItem(ItemIdentifier selectedItem)
Sets the name of the first selected item.
|
void |
setSelectedItem(String selectedItemText)
Sets the name of the first selected item.
|
void |
setSelectedItems(List<ItemIdentifier> selectedItems)
Sets the names of the selected item(s).
|
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenuclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getBackground, getFont, getForeground, getNativeHandle, isEnabled, isFocused, isVisible, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setBackground, setEnabled, setFocus, setFont, setForeground, setVisible, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeyscaptureBitmap, 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, 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 ListBox(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the ListBoxdesktop - the desktop on which this object livespublic void doubleSelect(ItemIdentifier item)
item - the item to selectpublic void doubleSelect(ItemIdentifier item, ModifierKey modifiers)
item - the item to selectmodifiers - the modifier to clickpublic void doubleSelect(String itemText)
itemText - the item to selectpublic void doubleSelect(String itemText, ModifierKey modifiers)
itemText - the item to selectmodifiers - the modifier to clickpublic void doubleSelect(int itemIndex)
itemIndex - the item to selectpublic void doubleSelect(int itemIndex,
ModifierKey modifiers)
itemIndex - the item to selectmodifiers - the modifier to clickpublic void extendSelect(ItemIdentifier item)
item - the item to selectpublic void extendSelect(String itemText)
itemText - the item to selectpublic void extendSelect(int itemIndex)
itemIndex - the item to selectpublic void multiSelect(ItemIdentifier item)
item - the item to selectpublic void multiSelect(String itemText)
itemText - the item to selectpublic void multiSelect(int itemIndex)
itemIndex - the item to selectpublic void multiUnselect(ItemIdentifier item)
item - the item to selectpublic void multiUnselect(String itemText)
itemText - the item to selectpublic void multiUnselect(int itemIndex)
itemIndex - the item to selectpublic void select(ItemIdentifier item)
item - the item to selectpublic void select(String itemText)
itemText - the item to selectpublic void select(int itemIndex)
itemIndex - the item to selectpublic void selectRange(ItemIdentifier selectRangeBegin, ItemIdentifier selectRangeEnd)
selectRangeBegin - the first item to selectselectRangeEnd - the last item to selectpublic void selectRange(ItemIdentifier selectRangeBegin, String selectRangeEndText)
selectRangeBegin - the first item to selectselectRangeEndText - the last item to selectpublic void selectRange(ItemIdentifier selectRangeBegin, int selectRangeEndIndex)
selectRangeBegin - the first item to selectselectRangeEndIndex - the last item to selectpublic void selectRange(String selectRangeBeginText, ItemIdentifier selectRangeEnd)
selectRangeBeginText - the first item to selectselectRangeEnd - the last item to selectpublic void selectRange(String selectRangeBeginText, String selectRangeEndText)
selectRangeBeginText - the first item to selectselectRangeEndText - the last item to selectpublic void selectRange(String selectRangeBeginText, int selectRangeEndIndex)
selectRangeBeginText - the first item to selectselectRangeEndIndex - the last item to selectpublic void selectRange(int selectRangeBeginIndex,
ItemIdentifier selectRangeEnd)
selectRangeBeginIndex - the first item to selectselectRangeEnd - the last item to selectpublic void selectRange(int selectRangeBeginIndex,
String selectRangeEndText)
selectRangeBeginIndex - the first item to selectselectRangeEndText - the last item to selectpublic void selectRange(int selectRangeBeginIndex,
int selectRangeEndIndex)
selectRangeBeginIndex - the first item to selectselectRangeEndIndex - the last item to selectpublic boolean isAllowsMultiSelect()
public int getItemCount()
public List<ItemIdentifier> getItems()
public int getSelectedIndex()
public void setSelectedIndex(int selectedIndex)
selectedIndex - the index of the first selected itempublic List<Integer> getSelectedIndices()
public void setSelectedIndices(List<Integer> selectedIndices)
selectedIndices - the indices of the selected item(s)public ItemIdentifier getSelectedItem()
public void setSelectedItem(ItemIdentifier selectedItem)
selectedItem - the name of the first selected itempublic void setSelectedItem(String selectedItemText)
selectedItemText - the name of the first selected itempublic void setSelectedItem(int selectedItemIndex)
selectedItemIndex - the name of the first selected itempublic List<ItemIdentifier> getSelectedItems()
public void setSelectedItems(List<ItemIdentifier> selectedItems)
selectedItems - the names of the selected item(s)Copyright 2009-2012 Micro Focus. All Rights Reserved.