fetchAll

fun fetchAll(): List<T>

Resolves every matching component and returns them as the T the query named, in depth-first pre-order. This is the last resort, for a call that requires the matched components themselves or a subject that is the whole set (e.g. the texts every row settled on). To read a value of one node, use SwingNodeInteraction.assertProperty, a matcher or an assertion. A query that named the type does not name it again:

val labels = onAllNodesOfType<JLabel>().fetchAll()

@JvmName(name = "fetchAllOfType")
inline fun <R : Component> fetchAll(): List<R>

Resolves every matching component and returns them typed as R, in depth-first pre-order, for a query that named no type of its own - or that named a wider one than the components to be driven. Like fetchAll, it is the last resort: SwingNodeInteraction.assertProperty, a matcher or an assertion reads a value.

Throws

if any matched node is not an R.