Package gaiasky.util.scene2d
Interface ContextMenu.ContextMenuListener
-
- Enclosing class:
- ContextMenu
public static interface ContextMenu.ContextMenuListener
Listener used to get events fromContextMenu
.- Since:
- 1.0.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activeItemChanged(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 whenMenuItem
was pressed, addChangeListener
toMenuItem
directly 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.
-
-