Class MenuPopupStateListener.Adapter

  • All Implemented Interfaces:
    MenuPopupStateListener
    Enclosing interface:
    MenuPopupStateListener

    @Deprecated
    public static class MenuPopupStateListener.Adapter
    extends java.lang.Object
    implements MenuPopupStateListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Menu popup state listener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • previewMenuPopupClose

        public Vote previewMenuPopupClose​(MenuPopup menuPopup,
                                          boolean immediate)
        Deprecated.
        Description copied from interface: MenuPopupStateListener
        Called to preview a menu popup close event.
        Specified by:
        previewMenuPopupClose in interface MenuPopupStateListener
        Parameters:
        menuPopup - The source of the event.
        immediate - Whether the close is meant to be immediate.
        Returns:
        The verdict as to whether to close from this listener.
      • menuPopupCloseVetoed

        public void menuPopupCloseVetoed​(MenuPopup menuPopup,
                                         Vote reason)
        Deprecated.
        Description copied from interface: MenuPopupStateListener
        Called when a menu popup close event has been vetoed.
        Specified by:
        menuPopupCloseVetoed in interface MenuPopupStateListener
        Parameters:
        menuPopup - The source of the event.
        reason - The accumulated vote that caused the veto.