|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--abbot.tester.Robot | +--abbot.tester.ComponentTester | +--abbot.tester.ContainerTester | +--abbot.tester.JComponentTester | +--abbot.tester.JListTester
Provide actions and assertions for a JList component.
Fields inherited from class abbot.tester.Robot |
BUTTON_MASK, componentDelay, defaultDelay, dragMask, EM_AWT, EM_PROG, EM_ROBOT, MENU_SHORTCUT_KEYCODE, MENU_SHORTCUT_MASK, MENU_SHORTCUT_MODIFIER, MULTI_CLICK_INTERVAL, POPUP_MASK, POPUP_MODIFIER, POPUP_ON_PRESS, popupDelay, state, TERTIARY_MASK, TERTIARY_MODIFIER |
Constructor Summary | |
JListTester()
|
Method Summary | |
void |
actionClickIndex(Component list,
int index)
Click the cell at the given index, using mouse button 1. |
void |
actionClickIndex(Component list,
int index,
String modifiers)
Click the cell at the given index, using the given button modifiers. |
void |
actionClickIndex(Component c,
int index,
String modifiers,
int count)
Click the cell at the given index, using the given button modifiers and click count. |
void |
actionClickValue(Component list,
String item)
Click on the given value using mouse button 1. |
void |
actionClickValue(Component list,
String item,
String modifiers)
Click on the given value, using the given button modifiers. |
void |
actionClickValue(Component list,
String item,
String modifiers,
int count)
Click on the given value, using the given button modifiers and click count. |
void |
actionScrollCellToVisible(Component list,
int index)
Make sure the entire element at the given index is visible. |
void |
actionSelectIndex(Component c,
int index)
Select the given index. |
void |
actionSelectPopupMenuItemAtIndex(Component list,
int index,
String menuItem)
Select an item from a popup menu on the given list at the given index. |
void |
actionSelectPopupMenuItemAtValue(Component list,
String item,
String menuItem)
Select an item from a popup menu on the given list at the given value. |
void |
actionSelectValue(Component list,
String item)
Select the first instance of the given value in the JList. |
void |
actionShowPopupMenuAtIndex(Component list,
int index)
Activate a popup menu on the given list at the given index. |
void |
actionShowPopupMenuAtValue(Component list,
String item)
Activate a popup menu on the given list at the given value. |
String[] |
getContents(JList list)
Return an array of strings that represents the list's contents. |
Object |
getElementAt(JList list,
int index)
JList doesn't provide direct access to its contents, so make up for that oversight. |
int |
getSize(JList list)
Return the size of the given list. |
protected Point |
indexToPoint(Component c,
int index)
Convert the given list index into an x, y coordinate. |
protected int |
valueToIndex(Component c,
String value)
Find the first string match in the list and return its index. |
Methods inherited from class abbot.tester.JComponentTester |
actionActionMap, actionScrollToVisible, actionScrollToVisible, deriveTag, mousePress, scrollToVisible, scrollToVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JListTester()
Method Detail |
protected Point indexToPoint(Component c, int index)
ActionFailedException
- if the index is out of range.public Object getElementAt(JList list, int index)
public int getSize(JList list)
public String[] getContents(JList list)
public void actionScrollCellToVisible(Component list, int index)
public void actionSelectIndex(Component c, int index)
ActionFailedException
- if the index is out of range.public void actionClickIndex(Component list, int index)
ActionFailedException
- if the index is out of range.public void actionClickIndex(Component list, int index, String modifiers)
ActionFailedException
- if the index is out of range.public void actionClickIndex(Component c, int index, String modifiers, int count)
ActionFailedException
- if the index is out of range.protected int valueToIndex(Component c, String value)
ActionFailedException
- if the value is not matched.public void actionSelectValue(Component list, String item)
ActionFailedException
- if the value does not exist.public void actionClickValue(Component list, String item)
ActionFailedException
- if the value does not exist.public void actionClickValue(Component list, String item, String modifiers)
ActionFailedException
- if the value does not exist.public void actionClickValue(Component list, String item, String modifiers, int count)
ActionFailedException
- if the value does not exist.public void actionSelectPopupMenuItemAtIndex(Component list, int index, String menuItem)
ActionFailedException
- if the index is out of range.public void actionSelectPopupMenuItemAtValue(Component list, String item, String menuItem)
ActionFailedException
- if the value does not exist.public void actionShowPopupMenuAtIndex(Component list, int index)
ActionFailedException
- if the index is out of range.public void actionShowPopupMenuAtValue(Component list, String item)
ActionFailedException
- if the value does not exist.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |