Interface DialogRegistry
public interface DialogRegistry
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all registered dialogs.Retrieves a dialog by its ID.getAll()Retrieves all registered dialogs.voidRegisters a new dialog in the registry.voidunregister(@NotNull String id) Unregisters a dialog from the registry.
-
Method Details
-
register
Registers a new dialog in the registry.- Parameters:
dialog- the dialog to register
-
unregister
Unregisters a dialog from the registry.- Parameters:
id- the ID of the dialog to unregister
-
get
Retrieves a dialog by its ID.- Parameters:
id- the ID of the dialog to retrieve- Returns:
- the dialog, or null if not found
-
getAll
Collection<Dialog> getAll()Retrieves all registered dialogs.- Returns:
- a collection of all registered dialogs
-
clear
void clear()Clears all registered dialogs.
-