public static void nextPage(final Event e, final CraftView view) { final int newPage = view.getCurrentPage() + 1; if (newPage >= view.getCurrentMaxPages()) { return; } view.setCurrentPage(newPage); }
public static void previousPage(final Event e, final CraftView view) { final int newPage = view.getCurrentPage() - 1; if (newPage < 0) { return; } view.setCurrentPage(newPage); }