public interface UiNavigation
Modifier and Type | Method and Description |
---|---|
void |
add(Actionable actionable)
Adds a
Actionable to end of the navigation |
Actionable |
getCursor()
Returns the
Actionable highlighted 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
Actionable from the navigation and shifts any following
Actionable s by 1 place |
Actionable |
resetCursor()
Resets the selection back to the first
Actionable |
void |
set(int index,
Actionable actionable)
Replace an
Actionable at a specific index |
void layout(ScreenSize screenSize)
screenSize
- The current ScreenSize
Actionable resetCursor()
Actionable
Actionable
Actionable getCursor()
Actionable
highlighted by the cursorActionable
void add(Actionable actionable)
Actionable
to end of the navigationactionable
- The Actionable
to addvoid remove(Actionable actionable)
Actionable
from the navigation and shifts any following
Actionable
s by 1 placeactionable
- The Actionable
to removevoid set(int index, Actionable actionable)
Actionable
at a specific indexindex
- The index to replaceactionable
- The new Actionable
Actionable navigate(int keycode)
keycode
- The key that was pressedActionable