Package limn.backend

Enum Class NativeWindow.PopupKind

java.lang.Object
java.lang.Enum<NativeWindow.PopupKind>
limn.backend.NativeWindow.PopupKind
All Implemented Interfaces:
Serializable, Comparable<NativeWindow.PopupKind>, Constable
Enclosing interface:
NativeWindow

public static enum NativeWindow.PopupKind extends Enum<NativeWindow.PopupKind>
What a registered child window is, which decides whether a modal over the owner leaves it usable.

Both kinds close and move with the owner; they differ only under an in-scene modal, which exempts its host so the host can keep drawing its own content outside its frame. Without this distinction that exemption reaches anything the host registered, and a non-modal dialog stayed clickable underneath a modal, where a native modal would have frozen it, and where the application had every reason to expect it frozen.

  • Enum Constant Details

    • TRANSIENT

      public static final NativeWindow.PopupKind TRANSIENT
      The owner's own content, drawn outside its frame because the OS gives it no other way: a dropdown's list, a menu cascade, a tooltip. It stays usable under an in-scene modal whose host is this window, because it is that host.
    • OWNED_WINDOW

      public static final NativeWindow.PopupKind OWNED_WINDOW
      A window in its own right that happens to be owned for lifetime and movement: a non-modal dialog, a floating palette. A modal over the owner blocks it like any other window.
  • Method Details

    • values

      public static NativeWindow.PopupKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NativeWindow.PopupKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null