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.text
Class PageService

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

public class PageService
extends java.lang.Object
implements IPageService

Page service of a text document.


Constructor Summary
PageService(ITextDocument textDocument)
          Constructs new PageService.
 
Method Summary
 IPage getPage(int index)
          Returns page with the submitted index.
 int getPageCount()
          Returns number of available pages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageService

public PageService(ITextDocument textDocument)
            throws java.lang.IllegalArgumentException
Constructs new PageService.

Parameters:
textDocument - text document to be used
Throws:
java.lang.IllegalArgumentException - if the submitted text 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

getPage

public IPage getPage(int index)
              throws TextException
Returns page with the submitted index. The first page has the index 0.

Specified by:
getPage in interface IPageService
Parameters:
index - index of the page
Returns:
page with the submitted index
Throws:
TextException - 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