public class BasicJTreeCellReader extends Object implements JTreeCellReader
JTreeCellReader.| Constructor and Description |
|---|
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. |
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.@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 JTreeCellReadertree - the given JTree.modelValue - the value of a cell, retrieved from the model.JTree as expected in a test.Copyright © 2014 AssertJ. All rights reserved.