|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.assertj.swing.driver.BasicJTreeCellReader
public class BasicJTreeCellReader
Default implementation of JTreeCellReader
.
Constructor Summary | |
---|---|
BasicJTreeCellReader()
Creates a new BasicJTreeCellReader that uses a BasicCellRendererReader to read the value from the
cell renderer component in a JTree . |
|
BasicJTreeCellReader(CellRendererReader reader)
Creates a new BasicJTreeCellReader . |
Method Summary | |
---|---|
String |
valueAt(JTree tree,
Object modelValue)
Returns the internal value of a cell in a JTree as expected in a test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicJTreeCellReader()
BasicJTreeCellReader
that uses a BasicCellRendererReader
to read the value from the
cell renderer component in a JTree
.
public BasicJTreeCellReader(@Nonnull CellRendererReader reader)
BasicJTreeCellReader
.
reader
- knows how to read values from the cell renderer component in a JTree
.
NullPointerException
- if reader
is null
.Method Detail |
---|
@RunsInCurrentThread @Nullable public String valueAt(@Nonnull JTree tree, @Nullable Object modelValue)
Returns the internal value of a cell in a JTree
as expected in a test.
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.
valueAt
in interface JTreeCellReader
tree
- the given JTree
.modelValue
- the value of a cell, retrieved from the model.
JTree
as expected in a test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |