public class VerticalUiNavigation extends java.lang.Object implements UiNavigation
UiNavigation implementation that treats all UiElements as
 stacked vertically| Constructor and Description | 
|---|
VerticalUiNavigation()  | 
| 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
 Actionables by 1 place | 
void | 
removeAll()
Removes all  
Actionable instances from the navigation | 
Actionable | 
resetCursor()
Resets the selection back to the first  
Actionable | 
void | 
set(int index,
   Actionable actionable)
Replace an  
Actionable at a specific index | 
public void add(Actionable actionable)
UiNavigationActionable to end of the navigationadd in interface UiNavigationactionable - The Actionable to addpublic void remove(Actionable actionable)
UiNavigationActionable from the navigation and shifts any following
 Actionables by 1 placeremove in interface UiNavigationactionable - The Actionable to removepublic void removeAll()
UiNavigationActionable instances from the navigationremoveAll in interface UiNavigationpublic void set(int index,
                Actionable actionable)
UiNavigationActionable at a specific indexset in interface UiNavigationindex - The index to replaceactionable - The new Actionablepublic Actionable navigate(int keycode)
UiNavigationnavigate in interface UiNavigationkeycode - The key that was pressedActionablepublic Actionable resetCursor()
UiNavigationActionableresetCursor in interface UiNavigationActionablepublic Actionable getCursor()
UiNavigationActionable highlighted by the cursorgetCursor in interface UiNavigationActionablepublic void layout(ScreenSize screenSize)
UiNavigationlayout in interface UiNavigationscreenSize - The current ScreenSize