Interface MenuItemHoverListener

All Known Implementing Classes:
MenuPopupWindow

public interface MenuItemHoverListener
An interface notified when a menu item is hovered. Useful for cases when hover should trigger some behavior at a higher level, like managing the opening and closing of submenus.
  • Method Details

    • onItemHoverExit

      void onItemHoverExit(@Nonnull MenuBuilder menu, @Nonnull MenuItem item)
      Called when hover exits a menu item.

      If hover is moving to another item, this method will be called before onItemHoverEnter(MenuBuilder, MenuItem) for the newly-hovered item.

      Parameters:
      menu - the item's parent menu
      item - the hovered menu item
    • onItemHoverEnter

      void onItemHoverEnter(@Nonnull MenuBuilder menu, @Nonnull MenuItem item)
      Called when hover enters a menu item.
      Parameters:
      menu - the item's parent menu
      item - the hovered menu item