public class RupsController extends Observable implements TreeSelectionListener, PageSelectionListener
| Modifier and Type | Field and Description |
|---|---|
protected JSplitPane |
masterComponent
Contains all other components: the page panel, the outline tree, etc.
|
protected RupsMenuBar |
menuBar
The JMenuBar for the RUPS application.
|
protected PdfFile |
pdfFile
The Pdf file that is currently open in the application.
|
protected StringBuilder |
rawText |
protected PdfReaderController |
readerController
Object with the GUI components for iText.
|
| Constructor and Description |
|---|
RupsController(Dimension dimension)
Constructs the GUI components of the RUPS application.
|
RupsController(Dimension dimension,
File f) |
| Modifier and Type | Method and Description |
|---|---|
Component |
getMasterComponent()
Getter for the master component.
|
RupsMenuBar |
getMenuBar()
Getter for the menubar.
|
PdfFile |
getPdfFile()
Getter for the pdfFile
|
int |
gotoPage(int pageNumber)
Goes to a specific page number in a document.
|
void |
loadFile(File file) |
void |
notifyObservers(Object obj) |
void |
saveFile(File file)
Saves the pdf to the disk
|
void |
valueChanged(TreeSelectionEvent evt) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChangedprotected PdfFile pdfFile
protected StringBuilder rawText
protected PdfReaderController readerController
protected RupsMenuBar menuBar
protected JSplitPane masterComponent
public RupsController(Dimension dimension)
public RupsMenuBar getMenuBar()
public Component getMasterComponent()
public void notifyObservers(Object obj)
notifyObservers in class ObservableObservable.notifyObservers(java.lang.Object)public void loadFile(File file)
file - the file to loadpublic void saveFile(File file)
file - java.io.File file to savepublic void valueChanged(TreeSelectionEvent evt)
valueChanged in interface TreeSelectionListenerTreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent)public int gotoPage(int pageNumber)
PageSelectionListenergotoPage in interface PageSelectionListenerPageSelectionListener.gotoPage(int)public PdfFile getPdfFile()
Copyright © 2016. All Rights Reserved.