how to create multi-page screen with libgdx scene2d?

java, libgdx, user-interface

Solution

nEx.Software has a nice little tutorial that explains how to do just this at http://nexsoftware.net/wp/2013/05/09/libgdx-making-a-paged-level-selection-screen/. His solution involves extending ScrollPane to add paging functionality.

Problem

I want to create a multi-page level selection screen (just like in angry birds level selection) that user could navigate between pages by dragging (swiping) his/her finger on the screen horizontally. I checked ui widgets in scene2d so I just found 'ScrollPane' that maybe useful but its functionality differs from what I want. Anybody has any ideas?

Original source