org.fest.swing.driver
Class BasicCellRendererReader
java.lang.Object
org.fest.swing.driver.BasicCellRendererReader
- All Implemented Interfaces:
- CellRendererReader
public class BasicCellRendererReader
- extends Object
- implements CellRendererReader
Understands a basic implementation of CellRendererReader
.
- Author:
- Alex Ruiz
Method Summary |
String |
valueFrom(Component c)
Reads the value in the given cell renderer component, or returns null if the renderer belongs to an
unknown component type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicCellRendererReader
public BasicCellRendererReader()
valueFrom
@RunsInCurrentThread
public String valueFrom(Component c)
- Reads the value in the given cell renderer component, or returns
null
if the renderer belongs to an
unknown component type. Internally, this method will call getText()
if the given renderer is an
instance of JLabel
.
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.
- Specified by:
valueFrom
in interface CellRendererReader
- Parameters:
c
- the given cell renderer component.
- Returns:
- the value of the given
Component
, or null
if the renderer belongs to an unknown
component type.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.