Package org.fest.swing.driver
Class BasicJListCellReader
java.lang.Object
org.fest.swing.driver.BasicJListCellReader
- All Implemented Interfaces:
JListCellReader
Understands the default implementation of
JListCellReader
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newBasicJListCellReader
that uses a
to read the value from the cell renderer component in aBasicCellRendererReader
JList
.BasicJListCellReader
(CellRendererReader rendererReader) Creates a newBasicJListCellReader
. -
Method Summary
-
Field Details
-
rendererReader
-
-
Constructor Details
-
BasicJListCellReader
public BasicJListCellReader()Creates a newBasicJListCellReader
that uses a
to read the value from the cell renderer component in aBasicCellRendererReader
JList
. -
BasicJListCellReader
Creates a newBasicJListCellReader
.- Parameters:
rendererReader
- knows how to read values from the cell renderer component in aJList
.- Throws:
NullPointerException
- ifrendererReader
isnull
.
-
-
Method Details
-
valueAt
Returns the internal value of a cell in a
as expected in a test.JList
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 interfaceJListCellReader
- Parameters:
list
- the givenJList
.index
- the index of the cell.- Returns:
- the internal value of a cell in a
JList
as expected in a test. - See Also:
-