fetchAll

fun fetchAll(): List<T>

Resolves every matching component and returns them as the T the query named, in depth-first pre-order, for reading or driving each component's own API (e.g. a JList's model, a JSplitPane's divider). 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.

Throws

if any matched node is not an R.