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 newBasicJTreeCellReaderthat uses ato read the value from the cell renderer component in aBasicCellRendererReaderJTree.BasicJTreeCellReader(CellRendererReader rendererReader) Creates a newBasicJTreeCellReader. -
Method Summary
-
Field Details
-
rendererReader
-
-
Constructor Details
-
BasicJTreeCellReader
public BasicJTreeCellReader()Creates a newBasicJTreeCellReaderthat uses ato read the value from the cell renderer component in aBasicCellRendererReaderJTree. -
BasicJTreeCellReader
Creates a newBasicJTreeCellReader.- Parameters:
rendererReader- knows how to read values from the cell renderer component in aJTree.- Throws:
NullPointerException- ifrendererReaderisnull.
-
-
Method Details
-
valueAt
Returns the internal value of a cell in aas expected in a test.JTreeNote: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Specified by:
valueAtin interfaceJTreeCellReader- Parameters:
tree- the givenJTree.modelValue- the value of a cell, retrieved from the model.- Returns:
- the internal value of a cell in a
JTreeas expected in a test.
-