Interface DialogRegistry


public interface DialogRegistry
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears all registered dialogs.
    get(String id)
    Retrieves a dialog by its ID.
    Retrieves all registered dialogs.
    void
    register(@NotNull Dialog dialog)
    Registers a new dialog in the registry.
    void
    unregister(@NotNull String id)
    Unregisters a dialog from the registry.
  • Method Details

    • register

      void register(@NotNull @NotNull Dialog dialog)
      Registers a new dialog in the registry.
      Parameters:
      dialog - the dialog to register
    • unregister

      void unregister(@NotNull @NotNull String id)
      Unregisters a dialog from the registry.
      Parameters:
      id - the ID of the dialog to unregister
    • get

      Dialog get(String id)
      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.