Package org.fest.swing.driver
Class BasicCellRendererReader
java.lang.Object
org.fest.swing.driver.BasicCellRendererReader
- All Implemented Interfaces:
CellRendererReader
Understands a basic implementation of
CellRendererReader
.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BasicCellRendererReader
public BasicCellRendererReader()
-
-
Method Details
-
valueFrom
Reads the value in the given cell renderer component, or returnsnull
if the renderer belongs to an unknown component type. Internally, this method will callgetText()
if the given renderer is an instance of
.JLabel
Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Specified by:
valueFrom
in interfaceCellRendererReader
- Parameters:
c
- the given cell renderer component.- Returns:
- the value of the given
Component
, ornull
if the renderer belongs to an unknown component type.
-