public class BasicJListCellReader extends Object implements JListCellReader
JListCellReader.| Constructor and Description |
|---|
BasicJListCellReader()
Creates a new
BasicJListCellReader that uses a
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(CellRendererReader rendererReader)
BasicJListCellReader.rendererReader - knows how to read values from the cell renderer component in a
JList.NullPointerException - if rendererReader is null.@RunsInCurrentThread public String valueAt(JList list, int index)
JList as expected in a test.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling 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 © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.