Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.presentation
Class PageService

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.presentation.PageService
All Implemented Interfaces:
IPageService

public class PageService
extends java.lang.Object
implements IPageService

Page service of a presentation document.


Constructor Summary
PageService(IPresentationDocument presentationDocument)
          Constructs new PageService.
 
Method Summary
 int getPageCount()
          Returns number of available pages.
 void goToPage(int index)
          Navigates to the page with the submitted index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageService

public PageService(IPresentationDocument presentationDocument)
            throws java.lang.IllegalArgumentException
Constructs new PageService.

Parameters:
presentationDocument - presentation document to be used
Throws:
java.lang.IllegalArgumentException - if the submitted presentation document is not valid
Method Detail

getPageCount

public int getPageCount()
Returns number of available pages.

Specified by:
getPageCount in interface IPageService
Returns:
number of available pages

goToPage

public void goToPage(int index)
              throws PresentationException
Navigates to the page with the submitted index. The first page has the index 0.

Specified by:
goToPage in interface IPageService
Parameters:
index - index of the page
Throws:
PresentationException - if the page is not available

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013