public interface UiNavigation extends HoverListener
| Modifier and Type | Method and Description | 
|---|---|
| void | add(Actionable actionable)Adds a  Actionableto end of the navigation | 
| Actionable | getCursor()Returns the  Actionablehighlighted by the cursor | 
| void | layout(ScreenSize screenSize)Re-orders elements based on screen size if necessary | 
| Actionable | navigate(int keycode)Update (if required) navigation from key input | 
| void | remove(Actionable actionable)Removes a  Actionablefrom the navigation and shifts any followingActionables by 1 place | 
| void | removeAll()Removes all  Actionableinstances from the navigation | 
| Actionable | resetCursor()Resets the selection back to the first  Actionable | 
| Actionable | resetCursor(boolean triggerHoverEvent)Resets the selection back to the first  Actionable | 
| void | set(int index,
   Actionable actionable)Replace an  Actionableat a specific index | 
onHoverBegin, onHoverEndvoid layout(ScreenSize screenSize)
screenSize - The current ScreenSizeActionable resetCursor()
ActionableActionableActionable resetCursor(boolean triggerHoverEvent)
ActionabletriggerHoverEvent - True if a hover event should be triggered. Typically used when a controller is being used for navigation.ActionableActionable getCursor()
Actionable highlighted by the cursorActionablevoid add(Actionable actionable)
Actionable to end of the navigationactionable - The Actionable to addvoid remove(Actionable actionable)
Actionable from the navigation and shifts any following
 Actionables by 1 placeactionable - The Actionable to removevoid removeAll()
Actionable instances from the navigationvoid set(int index,
         Actionable actionable)
Actionable at a specific indexindex - The index to replaceactionable - The new ActionableActionable navigate(int keycode)
keycode - The key that was pressedActionable