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 newBasicJListCellReaderthat uses ato read the value from the cell renderer component in aBasicCellRendererReaderJList.BasicJListCellReader(CellRendererReader rendererReader) Creates a newBasicJListCellReader. -
Method Summary
-
Field Details
-
rendererReader
-
-
Constructor Details
-
BasicJListCellReader
public BasicJListCellReader()Creates a newBasicJListCellReaderthat uses ato read the value from the cell renderer component in aBasicCellRendererReaderJList. -
BasicJListCellReader
Creates a newBasicJListCellReader.- Parameters:
rendererReader- knows how to read values from the cell renderer component in aJList.- Throws:
NullPointerException- ifrendererReaderisnull.
-
-
Method Details
-
valueAt
Returns the internal value of a cell in aas expected in a test.JListNote: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Specified by:
valueAtin interfaceJListCellReader- Parameters:
list- the givenJList.index- the index of the cell.- Returns:
- the internal value of a cell in a
JListas expected in a test. - See Also:
-