public class ListView extends Control
Modifier | Constructor and Description |
---|---|
protected |
ListView(JtfObjectHandle handle,
Desktop desktop)
Creates a new ListView with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
check(int itemIndex)
Checks an item.
|
void |
check(ItemIdentifier item)
Checks an item.
|
void |
check(String itemText)
Checks an item.
|
void |
doubleSelect(int itemIndex)
Double-clicks an item.
|
void |
doubleSelect(int itemIndex,
ModifierKey modifiers)
Double-clicks an item.
|
void |
doubleSelect(ItemIdentifier item)
Double-clicks an item.
|
void |
doubleSelect(ItemIdentifier item,
ModifierKey modifiers)
Double-clicks an item.
|
void |
doubleSelect(String itemText)
Double-clicks an item.
|
void |
doubleSelect(String itemText,
ModifierKey modifiers)
Double-clicks an item.
|
void |
extendSelect(int itemIndex)
Selects a range of items by extending the selection in the extend-selection listview.
|
void |
extendSelect(ItemIdentifier item)
Selects a range of items by extending the selection in the extend-selection listview.
|
void |
extendSelect(String itemText)
Selects a range of items by extending the selection in the extend-selection listview.
|
List<Integer> |
getCheckedIndices()
Gets a list containing the indices of the checked items.
|
List<ItemIdentifier> |
getCheckedItems()
Gets a list containing the checked items.
|
int |
getColumnCount()
Gets the number of columns per item.
|
List<String> |
getContents()
Returns the contents of a listview control.
|
List<String> |
getContents(int column)
Returns the contents of a listview control.
|
int |
getItemCount()
Gets the number of items contained in the list view.
|
int |
getItemImageIndex(int itemIndex)
Returns the index into the image list of a list view that contains icons.
|
int |
getItemImageIndex(int itemIndex,
boolean fromStateImageList)
Returns the index into the image list of a list view that contains icons.
|
int |
getItemImageIndex(ItemIdentifier item)
Returns the index into the image list of a list view that contains icons.
|
int |
getItemImageIndex(ItemIdentifier item,
boolean fromStateImageList)
Returns the index into the image list of a list view that contains icons.
|
int |
getItemImageIndex(String itemText)
Returns the index into the image list of a list view that contains icons.
|
int |
getItemImageIndex(String itemText,
boolean fromStateImageList)
Returns the index into the image list of a list view that contains icons.
|
int |
getItemIndex(int itemIndex)
Returns the index of the list view item or -1 if is not found.
|
int |
getItemIndex(ItemIdentifier item)
Returns the index of the list view item or -1 if is not found.
|
int |
getItemIndex(String itemText)
Returns the index of the list view item or -1 if is not found.
|
Rect |
getItemRect(int itemIndex)
Returns rectangle of the item.
|
Rect |
getItemRect(int itemIndex,
boolean getIconRect)
Returns rectangle of the item.
|
Rect |
getItemRect(int itemIndex,
boolean getIconRect,
int columnIndex)
Returns rectangle of the item.
|
Rect |
getItemRect(ItemIdentifier item)
Returns rectangle of the item.
|
Rect |
getItemRect(ItemIdentifier item,
boolean getIconRect)
Returns rectangle of the item.
|
Rect |
getItemRect(ItemIdentifier item,
boolean getIconRect,
int columnIndex)
Returns rectangle of the item.
|
Rect |
getItemRect(String itemText)
Returns rectangle of the item.
|
Rect |
getItemRect(String itemText,
boolean getIconRect)
Returns rectangle of the item.
|
Rect |
getItemRect(String itemText,
boolean getIconRect,
int columnIndex)
Returns rectangle of the item.
|
List<ItemIdentifier> |
getItems()
Gets a list containing all items of the listview.
|
String |
getItemText(int itemIndex)
Returns the text of an item.
|
String |
getItemText(int itemIndex,
int columnIndex)
Returns the text of an item.
|
String |
getItemText(ItemIdentifier item)
Returns the text of an item.
|
String |
getItemText(ItemIdentifier item,
int columnIndex)
Returns the text of an item.
|
String |
getItemText(String itemText)
Returns the text of an item.
|
String |
getItemText(String itemText,
int columnIndex)
Returns the text of an item.
|
List<Integer> |
getSelectedIndices()
Gets a list containing the indices of the selected items.
|
List<ItemIdentifier> |
getSelectedItems()
Gets a list containing the selected items.
|
boolean |
isAllowsCheck()
Gets whether this list view supports checking items.
|
boolean |
isAllowsMultiSelect()
Gets whether the list view supports selecting multiple items.
|
void |
multiSelect(int itemIndex)
Adds an item in the list to the set of currently selected items.
|
void |
multiSelect(ItemIdentifier item)
Adds an item in the list to the set of currently selected items.
|
void |
multiSelect(String itemText)
Adds an item in the list to the set of currently selected items.
|
void |
multiUnselect(int itemIndex)
Removes an item in the list from the set of selected items.
|
void |
multiUnselect(ItemIdentifier item)
Removes an item in the list from the set of selected items.
|
void |
multiUnselect(String itemText)
Removes an item in the list from the set of selected items.
|
void |
select(int itemIndex)
Selects an item.
|
void |
select(ItemIdentifier item)
Selects an item.
|
void |
select(String itemText)
Selects an item.
|
void |
setItemFocus(int itemIndex)
Gives focus to the item in the list.
|
void |
setItemFocus(ItemIdentifier item)
Gives focus to the item in the list.
|
void |
setItemFocus(String itemText)
Gives focus to the item in the list.
|
void |
uncheck(int itemIndex)
Unchecks an item.
|
void |
uncheck(ItemIdentifier item)
Unchecks an item.
|
void |
uncheck(String itemText)
Unchecks an item.
|
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenu
click, 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, typePasswordKeys
captureBitmap, 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, 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 ListView(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the ListViewdesktop
- the desktop on which this object livespublic void check(ItemIdentifier item)
item
- the item to checkpublic void check(String itemText)
itemText
- the item to checkpublic void check(int itemIndex)
itemIndex
- the item to checkpublic void doubleSelect(ItemIdentifier item)
item
- the item to double-clickpublic void doubleSelect(ItemIdentifier item, ModifierKey modifiers)
item
- the item to double-clickmodifiers
- the modifier to double-clickpublic void doubleSelect(String itemText)
itemText
- the item to double-clickpublic void doubleSelect(String itemText, ModifierKey modifiers)
itemText
- the item to double-clickmodifiers
- the modifier to double-clickpublic void doubleSelect(int itemIndex)
itemIndex
- the item to double-clickpublic void doubleSelect(int itemIndex, ModifierKey modifiers)
itemIndex
- the item to double-clickmodifiers
- the modifier to double-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 List<String> getContents()
public List<String> getContents(int column)
column
- specify this argument to get only the contents of a specific column. The value is zero-based.public int getItemImageIndex(ItemIdentifier item)
item
- the item to get the image index frompublic int getItemImageIndex(ItemIdentifier item, boolean fromStateImageList)
item
- the item to get the image index fromfromStateImageList
- whether to retrieve the index from the state image list or from the image listpublic int getItemImageIndex(String itemText)
itemText
- the item to get the image index frompublic int getItemImageIndex(String itemText, boolean fromStateImageList)
itemText
- the item to get the image index fromfromStateImageList
- whether to retrieve the index from the state image list or from the image listpublic int getItemImageIndex(int itemIndex)
itemIndex
- the item to get the image index frompublic int getItemImageIndex(int itemIndex, boolean fromStateImageList)
itemIndex
- the item to get the image index fromfromStateImageList
- whether to retrieve the index from the state image list or from the image listpublic int getItemIndex(ItemIdentifier item)
item
- the item to get the index forpublic int getItemIndex(String itemText)
itemText
- the item to get the index forpublic int getItemIndex(int itemIndex)
itemIndex
- the item to get the index forpublic Rect getItemRect(ItemIdentifier item)
item
- the item to get the rectangle frompublic Rect getItemRect(ItemIdentifier item, boolean getIconRect)
item
- the item to get the rectangle fromgetIconRect
- whether to retrieve the rectangle of the icon or the text of the itempublic Rect getItemRect(ItemIdentifier item, boolean getIconRect, int columnIndex)
item
- the item to get the rectangle fromgetIconRect
- whether to retrieve the rectangle of the icon or the text of the itemcolumnIndex
- the column position of the item. The value is zero-based.public Rect getItemRect(String itemText)
itemText
- the item to get the rectangle frompublic Rect getItemRect(String itemText, boolean getIconRect)
itemText
- the item to get the rectangle fromgetIconRect
- whether to retrieve the rectangle of the icon or the text of the itempublic Rect getItemRect(String itemText, boolean getIconRect, int columnIndex)
itemText
- the item to get the rectangle fromgetIconRect
- whether to retrieve the rectangle of the icon or the text of the itemcolumnIndex
- the column position of the item. The value is zero-based.public Rect getItemRect(int itemIndex)
itemIndex
- the item to get the rectangle frompublic Rect getItemRect(int itemIndex, boolean getIconRect)
itemIndex
- the item to get the rectangle fromgetIconRect
- whether to retrieve the rectangle of the icon or the text of the itempublic Rect getItemRect(int itemIndex, boolean getIconRect, int columnIndex)
itemIndex
- the item to get the rectangle fromgetIconRect
- whether to retrieve the rectangle of the icon or the text of the itemcolumnIndex
- the column position of the item. The value is zero-based.public String getItemText(ItemIdentifier item)
item
- the item to get the text frompublic String getItemText(ItemIdentifier item, int columnIndex)
item
- the item to get the text fromcolumnIndex
- the column position of the item. The value is zero-based.public String getItemText(String itemText)
itemText
- the item to get the text frompublic String getItemText(String itemText, int columnIndex)
itemText
- the item to get the text fromcolumnIndex
- the column position of the item. The value is zero-based.public String getItemText(int itemIndex)
itemIndex
- the item to get the text frompublic String getItemText(int itemIndex, int columnIndex)
itemIndex
- the item to get the text fromcolumnIndex
- the column position of the item. The value is zero-based.public 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 setItemFocus(ItemIdentifier item)
item
- the item to focus onpublic void setItemFocus(String itemText)
itemText
- the item to focus onpublic void setItemFocus(int itemIndex)
itemIndex
- the item to focus onpublic void uncheck(ItemIdentifier item)
item
- the item to uncheckpublic void uncheck(String itemText)
itemText
- the item to uncheckpublic void uncheck(int itemIndex)
itemIndex
- the item to uncheckpublic boolean isAllowsCheck()
public boolean isAllowsMultiSelect()
public List<Integer> getCheckedIndices()
public List<ItemIdentifier> getCheckedItems()
public int getColumnCount()
public int getItemCount()
public List<ItemIdentifier> getItems()
public List<Integer> getSelectedIndices()
public List<ItemIdentifier> getSelectedItems()
Copyright 2009-2012 Micro Focus. All Rights Reserved.