Verified Owner
Top Description Methods
org.jabref.gui.walkthrough.declarative

public Interface WindowResolver

Annotations
@FunctionalInterface
Imports
java.util.List, .Optional, javafx.stage.Stage, .Window, org.jspecify.annotations.NonNull

Resolves windows using various strategies.

Method Summary

Modifier and TypeMethod and Description
public static WindowResolver

Returns:

a resolver that finds the window by class
clazz
(@NonNull Class<? extends Window>
the class of the window
clazz
)

Create a resolver that finds a window by its class.

public static WindowResolver

Returns:

a resolver that finds any window except the specified one
not
(Window
the window to exclude from the search. Usually this is the current window.
window
)

Creates a resolver that finds a window that's not the window specified.

public Optional<Window>

Returns:

an optional containing the found window, or empty if not found
resolve
()

Resolves a window.

public static WindowResolver

Returns:

a resolver that finds the window by title
title
(@NonNull String
the already localized window title
title
)

Creates a resolver that finds a window by its title.

Method Detail

clazzback to summary
public static WindowResolver clazz(@NonNull Class<? extends Window> clazz)

Create a resolver that finds a window by its class.

Parameters
clazz:@NonNull Class<? extends Window>

the class of the window

Returns:WindowResolver

a resolver that finds the window by class

notback to summary
public static WindowResolver not(Window window)

Creates a resolver that finds a window that's not the window specified.

Parameters
window:Window

the window to exclude from the search. Usually this is the current window.

Returns:WindowResolver

a resolver that finds any window except the specified one

resolveback to summary
public Optional<Window> resolve()

Resolves a window.

Returns:Optional<Window>

an optional containing the found window, or empty if not found

titleback to summary
public static WindowResolver title(@NonNull String title)

Creates a resolver that finds a window by its title.

Parameters
title:@NonNull String

the already localized window title

Returns:WindowResolver

a resolver that finds the window by title