Package org.apache.pivot.wtk
Class MenuListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.MenuListener.Adapter
-
- All Implemented Interfaces:
MenuListener
- Enclosing interface:
- MenuListener
@Deprecated public static class MenuListener.Adapter extends java.lang.Object implements MenuListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Menu listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.MenuListener
MenuListener.Adapter, MenuListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
activeItemChanged(Menu menu, Menu.Item previousActiveItem)
Deprecated.Called when a menu's active item has changed.void
sectionInserted(Menu menu, int index)
Deprecated.Called when a menu section has been inserted.void
sectionsRemoved(Menu menu, int index, Sequence<Menu.Section> removed)
Deprecated.Called when menu sections have been removed.
-
-
-
Method Detail
-
sectionInserted
public void sectionInserted(Menu menu, int index)
Deprecated.Description copied from interface:MenuListener
Called when a menu section has been inserted.- Specified by:
sectionInserted
in interfaceMenuListener
- Parameters:
menu
- The source of the event.index
- Where the menu section was inserted.
-
sectionsRemoved
public void sectionsRemoved(Menu menu, int index, Sequence<Menu.Section> removed)
Deprecated.Description copied from interface:MenuListener
Called when menu sections have been removed.- Specified by:
sectionsRemoved
in interfaceMenuListener
- Parameters:
menu
- The menu that changed.index
- The starting index of the removal.removed
- The actual menu sections that were removed from the menu.
-
activeItemChanged
public void activeItemChanged(Menu menu, Menu.Item previousActiveItem)
Deprecated.Description copied from interface:MenuListener
Called when a menu's active item has changed.- Specified by:
activeItemChanged
in interfaceMenuListener
- Parameters:
menu
- The menu that changed.previousActiveItem
- What the previously active menu item was.
-
-