Paginations in JavaFX use a callback to get the pages used in the animation.
Pagination p = new Pagination();
p.setPageFactory(param -> new Button(param.toString()));
This creates an infinite list of buttons numbed 0..
since the zero arg constructor creates an infinite pagination. setPageFactory
takes a callback that takes an int, and returns the node that we want at that index.