@RunsInCurrentThread public interface JComboBoxCellReader
Reads the content of a cell in JComboBox
, as it appears to the user.
Note: Methods in this class are accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call methods in this class from the EDT.
Modifier and Type | Method and Description |
---|---|
String |
valueAt(JComboBox<?> comboBox,
int index)
Returns the internal value of a cell in a
JComboBox as expected in a test. |
@Nullable String valueAt(@Nonnull JComboBox<?> comboBox, int index)
Returns the internal value of a cell in a JComboBox
as expected in a test.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
comboBox
- the given JComboBox
.index
- the index of the cell.JComboBox
as expected in a test.Copyright © 2014–2019 AssertJ. All rights reserved.