public class AWTList extends AWTComponent
| Modifier | Constructor and Description |
|---|---|
protected |
AWTList(JtfObjectHandle handle,
Desktop desktop)
Creates a new AWTList with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deselect(int itemIndex)
Deselects the specified list item.
|
void |
deselect(ItemIdentifier item)
Deselects the specified list item.
|
void |
deselect(String itemText)
Deselects the specified list item.
|
void |
deselectAll()
Deselects all list items.
|
void |
doubleClickItem(int itemIndex)
Double-clicks a list item.
|
void |
doubleClickItem(int itemIndex,
ModifierKey modifiers)
Double-clicks a list item.
|
void |
doubleClickItem(ItemIdentifier item)
Double-clicks a list item.
|
void |
doubleClickItem(ItemIdentifier item,
ModifierKey modifiers)
Double-clicks a list item.
|
void |
doubleClickItem(String itemText)
Double-clicks a list item.
|
void |
doubleClickItem(String itemText,
ModifierKey modifiers)
Double-clicks a list item.
|
String |
getItem(int index)
Returns the list item at the specified index.
|
int |
getItemCount()
Gets the number of list items.
|
List<ItemIdentifier> |
getItems()
Gets a list of items in the list.
|
int |
getSelectedIndex()
Gets the index of the currently selected item.
|
List<Integer> |
getSelectedIndices()
Gets the indices of the currently selected items.
|
ItemIdentifier |
getSelectedItem()
Gets the currently selected list item.
|
List<ItemIdentifier> |
getSelectedItems()
Gets the currently selected list items.
|
boolean |
isMultipleMode()
Gets whether the list allows multiple selection.
|
void |
select(int itemIndex)
Selects the specified item.
|
void |
select(ItemIdentifier item)
Selects the specified item.
|
void |
select(String itemText)
Selects the specified item.
|
void |
selectAll()
Selects all items in the list.
|
void |
selectRange(int fromElementIndex,
int toElementIndex)
Selects all items within the specified range.
|
void |
selectRange(int fromElementIndex,
ItemIdentifier toElement)
Selects all items within the specified range.
|
void |
selectRange(int fromElementIndex,
String toElementText)
Selects all items within the specified range.
|
void |
selectRange(ItemIdentifier fromElement,
int toElementIndex)
Selects all items within the specified range.
|
void |
selectRange(ItemIdentifier fromElement,
ItemIdentifier toElement)
Selects all items within the specified range.
|
void |
selectRange(ItemIdentifier fromElement,
String toElementText)
Selects all items within the specified range.
|
void |
selectRange(String fromElementText,
int toElementIndex)
Selects all items within the specified range.
|
void |
selectRange(String fromElementText,
ItemIdentifier toElement)
Selects all items within the specified range.
|
void |
selectRange(String fromElementText,
String toElementText)
Selects all items within the specified range.
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAccessibleName, getAccessibleRole, getBackground, getCursor, getFont, getForeground, getHeight, getName, getNativeHandle, getWidth, isEnabled, isFocusable, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, scrollIntoView, 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 AWTList(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the AWTListdesktop - the desktop on which this object livespublic void deselect(ItemIdentifier item)
item - the name or index of the item to deselectpublic void deselect(String itemText)
itemText - the name or index of the item to deselectpublic void deselect(int itemIndex)
itemIndex - the name or index of the item to deselectpublic void deselectAll()
public void doubleClickItem(ItemIdentifier item)
item - the name or index of the item to double-clickpublic void doubleClickItem(ItemIdentifier item, ModifierKey modifiers)
item - the name or index of the item to double-clickmodifiers - the modifier keys (Alt, Shift and Ctrl) to press while double-clicking an item. Default: Don't use modifier keys.public void doubleClickItem(String itemText)
itemText - the name or index of the item to double-clickpublic void doubleClickItem(String itemText, ModifierKey modifiers)
itemText - the name or index of the item to double-clickmodifiers - the modifier keys (Alt, Shift and Ctrl) to press while double-clicking an item. Default: Don't use modifier keys.public void doubleClickItem(int itemIndex)
itemIndex - the name or index of the item to double-clickpublic void doubleClickItem(int itemIndex,
ModifierKey modifiers)
itemIndex - the name or index of the item to double-clickmodifiers - the modifier keys (Alt, Shift and Ctrl) to press while double-clicking an item. Default: Don't use modifier keys.public String getItem(int index)
index - the index of the list item. The value is zero-based.public void select(ItemIdentifier item)
item - the name or index of the item to selectpublic void select(String itemText)
itemText - the name or index of the item to selectpublic void select(int itemIndex)
itemIndex - the name or index of the item to selectpublic void selectAll()
public void selectRange(ItemIdentifier fromElement, ItemIdentifier toElement)
fromElement - the first element to selecttoElement - the last element to selectpublic void selectRange(ItemIdentifier fromElement, String toElementText)
fromElement - the first element to selecttoElementText - the last element to selectpublic void selectRange(ItemIdentifier fromElement, int toElementIndex)
fromElement - the first element to selecttoElementIndex - the last element to selectpublic void selectRange(String fromElementText, ItemIdentifier toElement)
fromElementText - the first element to selecttoElement - the last element to selectpublic void selectRange(String fromElementText, String toElementText)
fromElementText - the first element to selecttoElementText - the last element to selectpublic void selectRange(String fromElementText, int toElementIndex)
fromElementText - the first element to selecttoElementIndex - the last element to selectpublic void selectRange(int fromElementIndex,
ItemIdentifier toElement)
fromElementIndex - the first element to selecttoElement - the last element to selectpublic void selectRange(int fromElementIndex,
String toElementText)
fromElementIndex - the first element to selecttoElementText - the last element to selectpublic void selectRange(int fromElementIndex,
int toElementIndex)
fromElementIndex - the first element to selecttoElementIndex - the last element to selectpublic int getItemCount()
public List<ItemIdentifier> getItems()
public boolean isMultipleMode()
public int getSelectedIndex()
public List<Integer> getSelectedIndices()
public ItemIdentifier getSelectedItem()
public List<ItemIdentifier> getSelectedItems()
Copyright 2009-2012 Micro Focus. All Rights Reserved.