Package org.apache.pivot.wtk
Interface MenuPopupStateListener
-
- All Known Implementing Classes:
MenuPopupStateListener.Adapter
,MenuPopupStateListener.Listeners
,TerraMenuPopupSkin
public interface MenuPopupStateListener
Menu popup state listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MenuPopupStateListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
MenuPopupStateListener.Listeners
Menu popup state listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
menuPopupClosed(MenuPopup menuPopup)
Called when a menu popup has closed.default void
menuPopupCloseVetoed(MenuPopup menuPopup, Vote reason)
Called when a menu popup close event has been vetoed.default Vote
previewMenuPopupClose(MenuPopup menuPopup, boolean immediate)
Called to preview a menu popup close event.
-
-
-
Method Detail
-
previewMenuPopupClose
default Vote previewMenuPopupClose(MenuPopup menuPopup, boolean immediate)
Called to preview a menu popup close event.- 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
default void menuPopupCloseVetoed(MenuPopup menuPopup, Vote reason)
Called when a menu popup close event has been vetoed.- Parameters:
menuPopup
- The source of the event.reason
- The accumulated vote that caused the veto.
-
menuPopupClosed
default void menuPopupClosed(MenuPopup menuPopup)
Called when a menu popup has closed.- Parameters:
menuPopup
- The menu popup that closed.
-
-