Package org.fest.swing.driver
Class BasicJComboBoxCellReader
java.lang.Object
org.fest.swing.driver.BasicJComboBoxCellReader
- All Implemented Interfaces:
JComboBoxCellReader
Understands the default implementation of
JComboBoxCellReader
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newBasicJComboBoxCellReader
that uses a
to read the value from the cell renderer component in aBasicCellRendererReader
JComboBox
.BasicJComboBoxCellReader
(CellRendererReader rendererReader) Creates a newBasicJComboBoxCellReader
. -
Method Summary
-
Field Details
-
REFERENCE_JLIST
-
rendererReader
-
-
Constructor Details
-
BasicJComboBoxCellReader
public BasicJComboBoxCellReader()Creates a newBasicJComboBoxCellReader
that uses a
to read the value from the cell renderer component in aBasicCellRendererReader
JComboBox
. -
BasicJComboBoxCellReader
Creates a newBasicJComboBoxCellReader
.- Parameters:
rendererReader
- knows how to read values from the cell renderer component in aJComboBox
.- Throws:
NullPointerException
- ifr
isnull
.
-
-
Method Details
-
newJList
-
valueAt
Returns the internal value of a cell in a
as expected in a test.JComboBox
Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Specified by:
valueAt
in interfaceJComboBoxCellReader
- Parameters:
comboBox
- the givenJComboBox
.index
- the index of the cell.- Returns:
- the internal value of a cell in a
JComboBox
as expected in a test. - See Also:
-
cellRendererComponent
-