Package limn.backend

Interface QuitRequest


public sealed interface QuitRequest
The application-wide question Backend.requestQuit() asks first, to the QuitHandler, before any window is asked: may the application end? Answered exactly once, now or later.

Only Limn implements this interface. A test asks its handler the way the system does, through the headless backend of limn-test: Backend.requestQuit().

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Lets the request go on to the windows, front to back.
    boolean
     
    void
    Ends the request; every window stays open.
  • Method Details

    • allow

      void allow()
      Lets the request go on to the windows, front to back. UI thread only.
    • refuse

      void refuse()
      Ends the request; every window stays open. UI thread only.
    • isAnswered

      boolean isAnswered()
      Returns:
      whether allow() or refuse() has been called