Package gaiasky.util.scene2d
Interface ContextMenu.ContextMenuListener
-
- Enclosing class:
- ContextMenu
public static interface ContextMenu.ContextMenuListenerListener used to get events fromContextMenu.- Since:
- 1.0.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactiveItemChanged(MenuItem newActiveItem, boolean changedByKeyboard)Called when active menu item (the highlighted one) has changed.
-
-
-
Method Detail
-
activeItemChanged
void activeItemChanged(MenuItem newActiveItem, boolean changedByKeyboard)
Called when active menu item (the highlighted one) has changed. This can't be used to listen whenMenuItemwas pressed, addChangeListenertoMenuItemdirectly to achieve this.- Parameters:
newActiveItem- new item that is now active. May be null.changedByKeyboard- whether the change occurred by keyboard (arrows keys) or by mouse.
-
-