Method Summary |
|
public void | addToSelection(String path) Expands the current jTree selection with a given node. |
public void | addToSelection(String parentPath, int childIndex) Expands the current jTree selection with a node identified by its position in its parent node. |
static String | badTreePath(String path) |
public void | clearSelection() Removes the current selection. |
public void | click(String path) Simulates a user left-click on a given node. |
public Assertion | contains(String path) Checks that a node identified by the given path is present in the jTree. |
public Assertion | contentEquals(String expectedContents) Checks the nodes structure displayed by the jTree.
The expected contents is a newline (\n) separated string where nodes are
indented with two-space steps. |
public void | expand(String path, boolean expand) Expands or collapses a given node. |
public void | expandAll() Expands all the nodes of the jTree. |
public Assertion | foregroundEquals(String path, String color) Checks the font color used on a given node. |
public Component | getAwtComponent() |
public int | getChildCount(String path) Returns the number of children of a given node. |
public String | getDescriptionTypeName() |
public JTree | getJTree() Returns the JTree wrapped by this component. |
public String | getSeparator() Returns the separator currently used for specifying node paths in this jTree instance. |
public Assertion | pathIsExpanded(String path) Checks that the a given node of the jTree is expanded - i.e. |
public void | removeFromSelection(String path) Removes the given node from the current jTree selection. |
public void | rightClick(String path) Simulates a user right-click on a given node. |
public void | rightClickInSelection() Right-clicks on the first selected node. |
public void | select(String path) Sets the selection on the given node. |
public void | select(String parentPath, int childIndex) Sets the jTree selection on a node identified by its position in its parent node. |
public void | select(String parentPath, String childSubstring) Selects under a given parent all the nodes whose name contains a given substring. |
public void | select(String[] paths) |
public void | selectRoot() Selects the root node of the jTree. |
public Assertion | selectionEquals(String path) Checks that a given node is selected, and that is is the only selection. |
public Assertion | selectionEquals(String[] paths) Checks the selection contents. |
public Assertion | selectionIsEmpty() Checks that the selection is empty. |
public void | setCellValueConverter(TreeCellValueConverter converter) Sets a new converter for retrieving the text displayed on the tree cells. |
public static void | setDefaultSeparator(String separator) Sets the separator to be used for specifying node paths in new jTree instances. |
public void | setSeparator(String separator) Sets the separator to be used for specifying node paths in this jTree instance. |
public String | toString() |
public Trigger | triggerClick(String path) |
public Trigger | triggerRightClick(String path) |
public Trigger | triggerRightClickInSelection() |