Interface TabView.OnSetupMenu

Enclosing class:
TabView
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TabView.OnSetupMenu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emitted when a context menu is opened or closed for @page.
  • Method Details

    • onSetupMenu

      void onSetupMenu(@Nullable TabPage page)
      Emitted when a context menu is opened or closed for @page.

      If the menu has been closed, @page will be set to `NULL`.

      It can be used to set up menu actions before showing the menu, for example
      disable actions not applicable to @page.
      Parameters:
      page - a page of @self