public class BasicJComboBoxCellReader extends Object implements JComboBoxCellReader
JComboBoxCellReader.| Constructor and Description |
|---|
BasicJComboBoxCellReader()
Creates a new
BasicJComboBoxCellReader that uses a
to read the value from the cell renderer component in a
JComboBox. |
BasicJComboBoxCellReader(CellRendererReader rendererReader)
Creates a new
BasicJComboBoxCellReader. |
public BasicJComboBoxCellReader()
BasicJComboBoxCellReader that uses a
BasicCellRendererReader to read the value from the cell renderer component in a
JComboBox.public BasicJComboBoxCellReader(CellRendererReader rendererReader)
BasicJComboBoxCellReader.rendererReader - knows how to read values from the cell renderer component in a
JComboBox.NullPointerException - if r is null.@RunsInCurrentThread public String valueAt(JComboBox comboBox, int index)
JComboBox 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 JComboBoxCellReadercomboBox - the given JComboBox.index - the index of the cell.JComboBox as expected in a test.CellRendererReader.valueFrom(Component)Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.