public class ListComboBoxDriver extends AbstractComboBoxDriver
ListComboBox._cellReaderrobot| Constructor and Description |
|---|
ListComboBoxDriver(Robot robot) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
contentsOf(com.jidesoft.combobox.ListComboBox comboBox)
Returns an array of
Strings that represent the list. |
String[] |
getContents(com.jidesoft.combobox.ListComboBox target) |
JList |
getList(com.jidesoft.combobox.ListComboBox comboBox) |
String |
getValueAsString(com.jidesoft.combobox.ListComboBox target,
int index) |
void |
requireItemCount(com.jidesoft.combobox.ListComboBox comboBox,
int expected) |
void |
requireText(com.jidesoft.combobox.ListComboBox comboBox,
String value) |
void |
selectItem(com.jidesoft.combobox.ListComboBox comboBox,
int index)
Selects the item under the given index in the
. |
void |
selectItem(com.jidesoft.combobox.ListComboBox comboBox,
String toSelect)
Selects the first item matching the given text in the
. |
String |
value(com.jidesoft.combobox.AbstractComboBox comboBox,
int index)
Returns the
String representation of the element under the given index, using this driver's
. |
areEqual, cellReader, clickPopupButton, convertElementToString, deleteText, enterText, getEditorText, getInteractionComponent, getStringRepresentation, isDropDownVisible, itemAt, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, releaseKey, replaceText, requireEditable, requireEditorText, requireEnabled, requireNoSelection, requireNotEditable, requireNotEnabled, requirePopupVisible, requireSelection, selectAllText, selectedIndexProperty, sizeclientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisibledoResizeHeight, doResizeWidth, isResizable, move, resizebackgroundOf, checkClickAllowed, checkInEdtEnabledAndShowing, checkInEdtShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, fontOf, foregroundOf, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, propertyName, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowingpublic ListComboBoxDriver(Robot robot)
public JList getList(com.jidesoft.combobox.ListComboBox comboBox)
public void requireItemCount(com.jidesoft.combobox.ListComboBox comboBox,
int expected)
@RunsInEDT public void selectItem(com.jidesoft.combobox.ListComboBox comboBox, int index)
ListComboBox.comboBox - the target ListComboBox.index - the given index.IllegalStateException - if the JComboBox is disabled.IllegalStateException - if the JComboBox is not showing on the screen.IndexOutOfBoundsException - if the given index is negative or greater than the index of the last item in the
JComboBox.public void requireText(com.jidesoft.combobox.ListComboBox comboBox,
String value)
public void selectItem(com.jidesoft.combobox.ListComboBox comboBox,
String toSelect)
ListComboBox.comboBox - the target ListComboBox.toSelect - the text to matchLocationUnavailableException - if an element matching the given text cannot be found.public String value(com.jidesoft.combobox.AbstractComboBox comboBox, int index)
String representation of the element under the given index, using this driver's
AbstractComboBoxCellReader.comboBox - the target AbstractComboBox.index - the given index.LocationUnavailableException - if the given index is negative or greater than the
index of the last item in the AbstractComboBox.AbstractComboBoxDriver.cellReader(AbstractComboBoxCellReader)public String[] contentsOf(com.jidesoft.combobox.ListComboBox comboBox)
Strings that represent the ListComboBox list. Note that the current selection might not be included, since it's possible to have a
custom (edited) entry there that is not included in the default contents.comboBox - the target ListComboBox.Strings that represent the ListComboBox list.public String[] getContents(com.jidesoft.combobox.ListComboBox target)
public String getValueAsString(com.jidesoft.combobox.ListComboBox target, int index)
Copyright © 2014–2016 AssertJ. All rights reserved.