|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.assertj.swing.driver.BasicJComboBoxCellReader
public class BasicJComboBoxCellReader
Default implementation of JComboBoxCellReader
.
Constructor Summary | |
---|---|
BasicJComboBoxCellReader()
Creates a new BasicJComboBoxCellReader that uses a BasicCellRendererReader to read the value from
the cell renderer Component in a JComboBox . |
|
BasicJComboBoxCellReader(CellRendererReader rendererReader)
Creates a new BasicJComboBoxCellReader . |
Method Summary | |
---|---|
String |
valueAt(JComboBox comboBox,
int index)
Returns the internal value of a cell in a JComboBox as expected in a test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicJComboBoxCellReader()
BasicJComboBoxCellReader
that uses a BasicCellRendererReader
to read the value from
the cell renderer Component
in a JComboBox
.
public BasicJComboBoxCellReader(@Nonnull CellRendererReader rendererReader)
BasicJComboBoxCellReader
.
rendererReader
- knows how to read values from the cell renderer Component
in a JComboBox
.
NullPointerException
- if the given CellRendererReader
is null
.Method Detail |
---|
@RunsInCurrentThread @Nullable public 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.
valueAt
in interface JComboBoxCellReader
comboBox
- the given JComboBox
.index
- the index of the cell.
JComboBox
as expected in a test.CellRendererReader.valueFrom(Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |