Package org.apache.pivot.wtk
Interface MenuListener
-
- All Known Implementing Classes:
MenuListener.Adapter
,MenuListener.Listeners
,TerraMenuSkin
public interface MenuListener
Menu listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MenuListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
MenuListener.Listeners
Menu listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
activeItemChanged(Menu menu, Menu.Item previousActiveItem)
Called when a menu's active item has changed.default void
sectionInserted(Menu menu, int index)
Called when a menu section has been inserted.default void
sectionsRemoved(Menu menu, int index, Sequence<Menu.Section> removed)
Called when menu sections have been removed.
-
-
-
Method Detail
-
sectionInserted
default void sectionInserted(Menu menu, int index)
Called when a menu section has been inserted.- Parameters:
menu
- The source of the event.index
- Where the menu section was inserted.
-
sectionsRemoved
default void sectionsRemoved(Menu menu, int index, Sequence<Menu.Section> removed)
Called when menu sections have been removed.- Parameters:
menu
- The menu that changed.index
- The starting index of the removal.removed
- The actual menu sections that were removed from the menu.
-
-