Interface MenuBarHost


public interface MenuBarHost
What a backend asks and tells of a menu bar the system shows. Every call arrives on the UI thread.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    choose(int id)
    The user chose a row of the last reading.
    void
    Whether the system's bar holds this bar changed: it went to the window under a fullscreen that covers the system's bar, or came back.
    @Nullable WindowInput
    What the scene this bar is in hears its window through, or null once the bar is in no scene.
    Reads the bar as it is now.
  • Method Details

    • read

      Reads the bar as it is now. Asked whenever the system brings a menu up to date: when one opens, and before an accelerator is matched.
    • input

      @Nullable WindowInput input()
      What the scene this bar is in hears its window through, or null once the bar is in no scene. A window shows the bar of the scene bound to it: a bar whose answer is not the window's own input belongs to a scene the window has left, and gives way to another.
    • choose

      void choose(int id)
      The user chose a row of the last reading. A number of an older reading does nothing.
    • heldChanged

      void heldChanged()
      Whether the system's bar holds this bar changed: it went to the window under a fullscreen that covers the system's bar, or came back.