Package org.apache.pivot.wtk
Class MenuBarListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.MenuBarListener.Adapter
-
- All Implemented Interfaces:
MenuBarListener
- Enclosing interface:
- MenuBarListener
@Deprecated public static class MenuBarListener.Adapter extends java.lang.Object implements MenuBarListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Menu bar listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.MenuBarListener
MenuBarListener.Adapter, MenuBarListener.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(MenuBar menuBar, MenuBar.Item previousActiveItem)
Deprecated.Called when a menu bar's active item has changed.void
itemInserted(MenuBar menuBar, int index)
Deprecated.Called when a menu bar item has been inserted.void
itemsRemoved(MenuBar menuBar, int index, Sequence<MenuBar.Item> removed)
Deprecated.Called when menu bar items have been removed.
-
-
-
Method Detail
-
itemInserted
public void itemInserted(MenuBar menuBar, int index)
Deprecated.Description copied from interface:MenuBarListener
Called when a menu bar item has been inserted.- Specified by:
itemInserted
in interfaceMenuBarListener
- Parameters:
menuBar
- The menu bar that changed.index
- The index where a new item was inserted.
-
itemsRemoved
public void itemsRemoved(MenuBar menuBar, int index, Sequence<MenuBar.Item> removed)
Deprecated.Description copied from interface:MenuBarListener
Called when menu bar items have been removed.- Specified by:
itemsRemoved
in interfaceMenuBarListener
- Parameters:
menuBar
- The source of the event.index
- The starting index where items were removed.removed
- The sequence of removed items.
-
activeItemChanged
public void activeItemChanged(MenuBar menuBar, MenuBar.Item previousActiveItem)
Deprecated.Description copied from interface:MenuBarListener
Called when a menu bar's active item has changed.- Specified by:
activeItemChanged
in interfaceMenuBarListener
- Parameters:
menuBar
- The source of the event.previousActiveItem
- Which item was active previously.
-
-