create

static WidgetAddress create(Supplier<Optional<Widget>> getInterfaceFunc)

Creates a widget address using the specified supplier

Return

a new widget address

See also

Parameters

getInterfaceFunc

the interface supplier

static WidgetAddress create(Predicate<Widget> masterInterfaceFilter)

Creates a widget address by searching all widgets with the specified predicate. This is not recommended. You should provide a root widget to search for performance reasons (such as create.

Return

a new widget address

Parameters

masterInterfaceFilter

the widget predicate

static WidgetAddress create(int rootIndex, Predicate<Widget> componentFilter)

Creates a widget address by searching all widgets in the specified root index with the specified predicate.

Return

a new widget address

Parameters

rootIndex

the widget root index to search under

componentFilter

the widget predicate