Package-level declarations
Types
A lazy handle to the single component targeted by a query. The target is resolved against the live AWT tree each time it is needed, so it always reflects the current tree after recomposition.
A lazy handle to the set of components matched by a query. The match set is resolved against the live AWT tree each time it is needed, so it reflects the current tree.
A lazy handle to the single top-level window targeted by a window query. The target is resolved against the live set of realized windows each time it is needed, so it always reflects windows appearing and disappearing across recomposition.
A lazy handle to the set of realized windows matched by a window query. The match set is resolved against the live set of realized windows each time it is needed, so it reflects windows appearing and disappearing across recomposition.
Functions
Asserts that the matched node and expected describe the same user interface - the same widgets, nested the same way, holding the same state - and returns this interaction for chaining.
Returns a handle to the matched node's ancestors, nearest first, up to and including the root the node was found under. A node that is itself a root yields an empty collection.
Returns a handle to the matched node's only direct child. Resolution fails unless the node holds exactly one child.
Returns a handle to the matched node's direct child at index. Convenience for onChildren()[index].
Returns a handle to the matched node's children, in their container's order. A node with no children yields an empty collection.
Returns a handle to every component below the matched node, at any depth, in depth-first pre-order. The node itself is excluded, which is how a query scopes to one subtree:
Returns a handle to the parent of the matched node.
Returns a handle to the matched node's only sibling. Resolution fails unless the node's parent holds exactly two children.
Returns a handle to the matched node's siblings: every other child of its parent, in the parent's order. A node with no parent yields an empty collection.
Delivers the event event builds for the matched node, then settles the composition.
Delivers a focus-gained notification to the matched node and settles the composition.
Delivers a focus-lost notification to the matched node and settles the composition.
Clicks the tab at index on the matched JTabbedPane and settles the composition.
Types text onto the end of the matched JTextComponent's current content, then settles the composition.
Pastes text into the matched JTextComponent over its current selection, then settles the composition.
Replaces the matched JTextComponent's entire content with text, then settles the composition.
Types text on the matched node one character at a time, then settles the composition.