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 newBasicJComboBoxCellReaderthat uses ato read the value from the cell renderer component in aBasicCellRendererReaderJComboBox.BasicJComboBoxCellReader(CellRendererReader rendererReader) Creates a newBasicJComboBoxCellReader. -
Method Summary
-
Field Details
-
REFERENCE_JLIST
-
rendererReader
-
-
Constructor Details
-
BasicJComboBoxCellReader
public BasicJComboBoxCellReader()Creates a newBasicJComboBoxCellReaderthat uses ato read the value from the cell renderer component in aBasicCellRendererReaderJComboBox. -
BasicJComboBoxCellReader
Creates a newBasicJComboBoxCellReader.- Parameters:
rendererReader- knows how to read values from the cell renderer component in aJComboBox.- Throws:
NullPointerException- ifrisnull.
-
-
Method Details
-
newJList
-
valueAt
Returns the internal value of a cell in aas expected in a test.JComboBoxNote: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Specified by:
valueAtin interfaceJComboBoxCellReader- Parameters:
comboBox- the givenJComboBox.index- the index of the cell.- Returns:
- the internal value of a cell in a
JComboBoxas expected in a test. - See Also:
-
cellRendererComponent
-