org.assertj.swing.cell
Interface JTreeCellReader

All Known Implementing Classes:
BasicJTreeCellReader

@RunsInCurrentThread
public interface JTreeCellReader

Reads the content, as shown to the user, of a cell in a JTable.

Note: Methods in this class are accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT.) Client code must call methods in this class from the EDT.

Author:
Yvonne Wang, Alex Ruiz

Method Summary
 String valueAt(JTree tree, Object modelValue)
           Returns the internal value of a cell in a JTree as expected in a test.
 

Method Detail

valueAt

@Nullable
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.

Parameters:
tree - the given JTree.
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.


Copyright © 2014–2015 AssertJ. All rights reserved.