public class JList extends JComponent
Modifier | Constructor and Description |
---|---|
protected |
JList(JtfObjectHandle handle,
Desktop desktop)
Creates a new JList with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
clickItem(int itemIndex)
Clicks the specified list item.
|
void |
clickItem(int itemIndex,
int button)
Clicks the specified list item.
|
void |
clickItem(int itemIndex,
int button,
Point position)
Clicks the specified list item.
|
void |
clickItem(int itemIndex,
int button,
Point position,
ModifierKey modifiers)
Clicks the specified list item.
|
void |
clickItem(ItemIdentifier item)
Clicks the specified list item.
|
void |
clickItem(ItemIdentifier item,
int button)
Clicks the specified list item.
|
void |
clickItem(ItemIdentifier item,
int button,
Point position)
Clicks the specified list item.
|
void |
clickItem(ItemIdentifier item,
int button,
Point position,
ModifierKey modifiers)
Clicks the specified list item.
|
void |
clickItem(String itemText)
Clicks the specified list item.
|
void |
clickItem(String itemText,
int button)
Clicks the specified list item.
|
void |
clickItem(String itemText,
int button,
Point position)
Clicks the specified list item.
|
void |
clickItem(String itemText,
int button,
Point position,
ModifierKey modifiers)
Clicks the specified list item.
|
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,
int button)
Double-clicks a list item.
|
void |
doubleClickItem(int itemIndex,
int button,
Point position)
Double-clicks a list item.
|
void |
doubleClickItem(int itemIndex,
int button,
Point position,
ModifierKey modifiers)
Double-clicks a list item.
|
void |
doubleClickItem(ItemIdentifier item)
Double-clicks a list item.
|
void |
doubleClickItem(ItemIdentifier item,
int button)
Double-clicks a list item.
|
void |
doubleClickItem(ItemIdentifier item,
int button,
Point position)
Double-clicks a list item.
|
void |
doubleClickItem(ItemIdentifier item,
int button,
Point position,
ModifierKey modifiers)
Double-clicks a list item.
|
void |
doubleClickItem(String itemText)
Double-clicks a list item.
|
void |
doubleClickItem(String itemText,
int button)
Double-clicks a list item.
|
void |
doubleClickItem(String itemText,
int button,
Point position)
Double-clicks a list item.
|
void |
doubleClickItem(String itemText,
int button,
Point position,
ModifierKey modifiers)
Double-clicks a list item.
|
int |
findItem(String itemText)
Returns the index of an item in the list.
|
String |
getItem(int index)
Returns the item at the specified index.
|
int |
getItemCount()
Gets the number of list items.
|
Rect |
getItemRect(int itemIndex)
Returns the size and position of the item relative to the list.
|
Rect |
getItemRect(ItemIdentifier item)
Returns the size and position of the item relative to the list.
|
Rect |
getItemRect(String itemText)
Returns the size and position of the item relative to the list.
|
List<ItemIdentifier> |
getItems()
Gets the list of all contained list items.
|
Object |
getItemValue(int itemIndex)
Returns the value object of the list item.
|
Object |
getItemValue(ItemIdentifier item)
Returns the value object of the list item.
|
Object |
getItemValue(String itemText)
Returns the value object of the list item.
|
int |
getSelectedIndex()
Gets the index of the selected list item.
|
List<Integer> |
getSelectedIndices()
Gets the list of indices of the selected list items.
|
ItemIdentifier |
getSelectedItem()
Gets the name or index of the selected list item.
|
List<ItemIdentifier> |
getSelectedItems()
Gets the list of names or indices of the selected list items.
|
void |
scrollItemIntoView(int itemIndex)
Scrolls an item into view.
|
void |
scrollItemIntoView(ItemIdentifier item)
Scrolls an item into view.
|
void |
scrollItemIntoView(String itemText)
Scrolls an item into view.
|
void |
select(int itemIndex)
Selects a list item.
|
void |
select(ItemIdentifier item)
Selects a list item.
|
void |
select(String itemText)
Selects a list item.
|
void |
selectAll()
Selects all list elements.
|
void |
selectRange(int fromElementIndex,
int toElementIndex)
Selects a specified range of list elements.
|
void |
selectRange(int fromElementIndex,
ItemIdentifier toElement)
Selects a specified range of list elements.
|
void |
selectRange(int fromElementIndex,
String toElementText)
Selects a specified range of list elements.
|
void |
selectRange(ItemIdentifier fromElement,
int toElementIndex)
Selects a specified range of list elements.
|
void |
selectRange(ItemIdentifier fromElement,
ItemIdentifier toElement)
Selects a specified range of list elements.
|
void |
selectRange(ItemIdentifier fromElement,
String toElementText)
Selects a specified range of list elements.
|
void |
selectRange(String fromElementText,
int toElementIndex)
Selects a specified range of list elements.
|
void |
selectRange(String fromElementText,
ItemIdentifier toElement)
Selects a specified range of list elements.
|
void |
selectRange(String fromElementText,
String toElementText)
Selects a specified range of list elements.
|
getToolTipText
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, 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 JList(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the JListdesktop
- the desktop on which this object livespublic void clickItem(ItemIdentifier item)
item
- the name or index of the list itempublic void clickItem(ItemIdentifier item, int button)
item
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).public void clickItem(ItemIdentifier item, int button, Point position)
item
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the clicked position within the list. (default: center of the list item)public void clickItem(ItemIdentifier item, int button, Point position, ModifierKey modifiers)
item
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the clicked position within the list. (default: center of the list item)modifiers
- the modifier keys (Alt, Shift and Ctrl) to press while clicking the list item. Use a modifier to click multiple list items. Default: Don't use modifier keys.public void clickItem(String itemText)
itemText
- the name or index of the list itempublic void clickItem(String itemText, int button)
itemText
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).public void clickItem(String itemText, int button, Point position)
itemText
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the clicked position within the list. (default: center of the list item)public void clickItem(String itemText, int button, Point position, ModifierKey modifiers)
itemText
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the clicked position within the list. (default: center of the list item)modifiers
- the modifier keys (Alt, Shift and Ctrl) to press while clicking the list item. Use a modifier to click multiple list items. Default: Don't use modifier keys.public void clickItem(int itemIndex)
itemIndex
- the name or index of the list itempublic void clickItem(int itemIndex, int button)
itemIndex
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).public void clickItem(int itemIndex, int button, Point position)
itemIndex
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the clicked position within the list. (default: center of the list item)public void clickItem(int itemIndex, int button, Point position, ModifierKey modifiers)
itemIndex
- the name or index of the list itembutton
- the button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the clicked position within the list. (default: center of the list item)modifiers
- the modifier keys (Alt, Shift and Ctrl) to press while clicking the list item. Use a modifier to click multiple list items. Default: Don't use modifier keys.public void deselect(ItemIdentifier item)
item
- the name or index of the list itempublic void deselect(String itemText)
itemText
- the name or index of the list itempublic void deselect(int itemIndex)
itemIndex
- the name or index of the list itempublic void deselectAll()
public void doubleClickItem(ItemIdentifier item)
item
- the name or index of the list itempublic void doubleClickItem(ItemIdentifier item, int button)
item
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).public void doubleClickItem(ItemIdentifier item, int button, Point position)
item
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the double-clicked position within the list. (default: center of the list item)public void doubleClickItem(ItemIdentifier item, int button, Point position, ModifierKey modifiers)
item
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the double-clicked position within the list. (default: center of the list item)modifiers
- the modifier keys (Alt, Shift and Ctrl) to press while double-clicking the list item. Default: Don't use modifier keys.public void doubleClickItem(String itemText)
itemText
- the name or index of the list itempublic void doubleClickItem(String itemText, int button)
itemText
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).public void doubleClickItem(String itemText, int button, Point position)
itemText
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the double-clicked position within the list. (default: center of the list item)public void doubleClickItem(String itemText, int button, Point position, ModifierKey modifiers)
itemText
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the double-clicked position within the list. (default: center of the list item)modifiers
- the modifier keys (Alt, Shift and Ctrl) to press while double-clicking the list item. Default: Don't use modifier keys.public void doubleClickItem(int itemIndex)
itemIndex
- the name or index of the list itempublic void doubleClickItem(int itemIndex, int button)
itemIndex
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).public void doubleClickItem(int itemIndex, int button, Point position)
itemIndex
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the double-clicked position within the list. (default: center of the list item)public void doubleClickItem(int itemIndex, int button, Point position, ModifierKey modifiers)
itemIndex
- the name or index of the list itembutton
- the button used for double-clicking. Valid values are: left (=1, the default value), right (=2), middle (=3).position
- the double-clicked position within the list. (default: center of the list item)modifiers
- the modifier keys (Alt, Shift and Ctrl) to press while double-clicking the list item. Default: Don't use modifier keys.public int findItem(String itemText)
itemText
- the item to findpublic String getItem(int index)
index
- the item index. The value is zero-based.public Rect getItemRect(ItemIdentifier item)
item
- the name or index of the itempublic Rect getItemRect(String itemText)
itemText
- the name or index of the itempublic Rect getItemRect(int itemIndex)
itemIndex
- the name or index of the itempublic Object getItemValue(ItemIdentifier item)
item
- the name or index of the list itempublic Object getItemValue(String itemText)
itemText
- the name or index of the list itempublic Object getItemValue(int itemIndex)
itemIndex
- the name or index of the list itempublic void scrollItemIntoView(ItemIdentifier item)
item
- the name or index of the item to scroll into viewpublic void scrollItemIntoView(String itemText)
itemText
- the name or index of the item to scroll into viewpublic void scrollItemIntoView(int itemIndex)
itemIndex
- the name or index of the item to scroll into viewpublic void select(ItemIdentifier item)
item
- the name or index of the list itempublic void select(String itemText)
itemText
- the name or index of the list itempublic void select(int itemIndex)
itemIndex
- the name or index of the list itempublic void selectAll()
public void selectRange(ItemIdentifier fromElement, ItemIdentifier toElement)
fromElement
- the name or index of the start elementtoElement
- the name or index of the end elementpublic void selectRange(ItemIdentifier fromElement, String toElementText)
fromElement
- the name or index of the start elementtoElementText
- the name or index of the end elementpublic void selectRange(ItemIdentifier fromElement, int toElementIndex)
fromElement
- the name or index of the start elementtoElementIndex
- the name or index of the end elementpublic void selectRange(String fromElementText, ItemIdentifier toElement)
fromElementText
- the name or index of the start elementtoElement
- the name or index of the end elementpublic void selectRange(String fromElementText, String toElementText)
fromElementText
- the name or index of the start elementtoElementText
- the name or index of the end elementpublic void selectRange(String fromElementText, int toElementIndex)
fromElementText
- the name or index of the start elementtoElementIndex
- the name or index of the end elementpublic void selectRange(int fromElementIndex, ItemIdentifier toElement)
fromElementIndex
- the name or index of the start elementtoElement
- the name or index of the end elementpublic void selectRange(int fromElementIndex, String toElementText)
fromElementIndex
- the name or index of the start elementtoElementText
- the name or index of the end elementpublic void selectRange(int fromElementIndex, int toElementIndex)
fromElementIndex
- the name or index of the start elementtoElementIndex
- the name or index of the end elementpublic int getItemCount()
public List<ItemIdentifier> getItems()
public int getSelectedIndex()
public List<Integer> getSelectedIndices()
public ItemIdentifier getSelectedItem()
public List<ItemIdentifier> getSelectedItems()
Copyright 2009-2012 Micro Focus. All Rights Reserved.