MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / goToPage

Method goToPage

src/org/albite/book/view/Booklet.java:272–285  ·  view source on GitHub ↗
(final int page)

Source from the content-addressed store, hash-verified

270 }
271
272 public void goToPage(final int page) {
273 if (page <= 0) {
274 goToFirstPage();
275 return;
276 }
277
278 if (page >= pages.size() - 1) {
279 goToLastPage();
280 return;
281 }
282
283 currentPageIndex = page;
284 setPages();
285 }
286
287 private void setPages() {
288

Callers 2

goToPositionMethod · 0.95
goToPositionMethod · 0.80

Calls 4

goToFirstPageMethod · 0.95
goToLastPageMethod · 0.95
setPagesMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected