A helper class to handle navigation through a grid of elements that can scroll vertically
Needs to be used by a UiHandler
How to use:
in UiHandler.setup: Initialize with the UiHandler that handles the grid,
the number of rows and columns that can be shown at once,
an optional ScrollBar, and optional callbacks that will get called after scrolling
in UiHandler.show: Set setTotalElements to the total number of elements in the list to display
in UiHandler.processInput: call processNavigationInput to have it handle the cursor updates while calling the defined callbacks
A helper class to handle navigation through a grid of elements that can scroll vertically Needs to be used by a
UiHandler
How to use:UiHandler.setup
: Initialize with theUiHandler
that handles the grid, the number of rows and columns that can be shown at once, an optionalScrollBar
, and optional callbacks that will get called after scrollingUiHandler.show
: SetsetTotalElements
to the total number of elements in the list to displayUiHandler.processInput
: callprocessNavigationInput
to have it handle the cursor updates while calling the defined callbacksUiHandler.clear
: callreset