Package org.fest.swing.driver
Class BasicJTreeCellReader
java.lang.Object
org.fest.swing.driver.BasicJTreeCellReader
- All Implemented Interfaces:
JTreeCellReader
Understands the default implementation of
JTreeCellReader
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newBasicJTreeCellReader
that uses a
to read the value from the cell renderer component in aBasicCellRendererReader
JTree
.BasicJTreeCellReader
(CellRendererReader rendererReader) Creates a newBasicJTreeCellReader
. -
Method Summary
-
Field Details
-
rendererReader
-
-
Constructor Details
-
BasicJTreeCellReader
public BasicJTreeCellReader()Creates a newBasicJTreeCellReader
that uses a
to read the value from the cell renderer component in aBasicCellRendererReader
JTree
. -
BasicJTreeCellReader
Creates a newBasicJTreeCellReader
.- Parameters:
rendererReader
- knows how to read values from the cell renderer component in aJTree
.- Throws:
NullPointerException
- ifrendererReader
isnull
.
-
-
Method Details
-
valueAt
Returns the internal value of a cell in a
as expected in a test.JTree
Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Specified by:
valueAt
in interfaceJTreeCellReader
- Parameters:
tree
- the givenJTree
.modelValue
- the value of a cell, retrieved from the model.- Returns:
- the internal value of a cell in a
JTree
as expected in a test.
-