示例#1
0
 /**
  * Add a page to this model.
  *
  * @param page the page to add to the model.
  */
 public void addPage(final PageViewport page) {
   this.currentPageSequence.addPage(page);
   page.setPageIndex(this.currentPageIndex + this.currentPageSequence.getPageCount() - 1);
   page.setPageSequence(this.currentPageSequence);
 }
示例#2
0
 /**
  * Indicates whether a page is the first in this page sequence.
  *
  * @param page the page to be inspected
  * @return true if the page is the first in this page sequence, false otherwise
  */
 public boolean isFirstPage(PageViewport page) {
   return page.equals(getPage(0));
 }