public class BasicJListCellReader extends Object implements JListCellReader
JListCellReader.| Constructor and Description |
|---|
BasicJListCellReader()
Creates a new
BasicJListCellReader that uses a BasicCellRendererReader to read the value from the
cell renderer component in a JList. |
BasicJListCellReader(CellRendererReader rendererReader)
Creates a new
BasicJListCellReader. |
public BasicJListCellReader()
BasicJListCellReader that uses a BasicCellRendererReader to read the value from the
cell renderer component in a JList.public BasicJListCellReader(@Nonnull CellRendererReader rendererReader)
BasicJListCellReader.rendererReader - knows how to read values from the cell renderer component in a JList.NullPointerException - if rendererReader is null.@RunsInCurrentThread @Nullable public String valueAt(@Nonnull JList list, int index)
Returns the internal value of a cell in a JList 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 JListCellReaderlist - the given JList.index - the index of the cell.JList as expected in a test.CellRendererReader.valueFrom(Component)Copyright © 2014 AssertJ. All rights reserved.