org.assertj.swing.driver
Interface CellRendererReader

All Known Implementing Classes:
BasicCellRendererReader

public interface CellRendererReader

Reads the value of an AWT or Swing Component that used as a cell renderer.

Author:
Alex Ruiz

Method Summary
 String valueFrom(Component c)
           Reads the value in the given cell renderer Component, or returns null if the component is not recognized by this reader.
 

Method Detail

valueFrom

@RunsInCurrentThread
@Nullable
String valueFrom(@Nullable
                                              Component c)

Reads the value in the given cell renderer Component, or returns null if the component is not recognized by this reader.

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.

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 © 2014–2015 AssertJ. All rights reserved.