public class PDFControllerImpl extends Object implements PDFController, Serializable
| Constructor and Description |
|---|
PDFControllerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPDF(String resultID,
PDFViewer pdfViewer)
Registers a pdf viewer to the controller.
|
void |
openPDF(String resultID,
String page)
Opens a pdf viewer for a specific result id.
|
int |
sizeOfRegisterdPDFViewer()
Informs about the number of already registered pdf viewer.
|
public void addPDF(String resultID, PDFViewer pdfViewer)
PDFControlleraddPDF in interface PDFControllerresultID - The result id is an arbitrary String and does not have to be unique for every
pdf viewer. If already a pdf viewer is registered for a specific result id, the new pdf
viewer is appended.pdfViewer - The registered pdf viewer.public void openPDF(String resultID, String page)
PDFControlleropenPDF in interface PDFControllerresultID - Is an arbitrary String. If no pdf viewer is registered an
IllegalArgumentException is thrown.page - Determines the pages of the pdf to render. The String could specify a range
(eg. [1-12]) or a singe page (eg. 3).public int sizeOfRegisterdPDFViewer()
PDFControllersizeOfRegisterdPDFViewer in interface PDFControllerCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.