For example, you can group a list of contacts based on the letters in the alphabet.
You can provide custom headers for your list by calling the setHeader method.
Your header must set the ICellRenderer.isHeader to true.

scrollIndexVisible()

Scrolls a given item into view, given an index and an animation duration (in seconds).

This function checks to see if the cell is currently visible before scrolling it into view.
If the cell is not fully visible within the viewport of the list, it will scroll it into the viewport.
If the cell is fully visible in the viewport, the list will not scroll.

Parameters

index:int — The index of the cell to animate into view.

seconds:Number (default = 1) — The duration of the animation in seconds. Default is 1 second.