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 PdfReaderController |
readerController
Object with the GUI components for iText.
|
Constructor and Description |
---|
RupsController(Dimension dimension)
Constructs the GUI components of the RUPS application.
|
Modifier and Type | Method and Description |
---|---|
Component |
getMasterComponent()
Getter for the master component.
|
RupsMenuBar |
getMenuBar()
Getter for the menubar.
|
int |
gotoPage(int pageNumber)
Goes to a specific page number in a document.
|
void |
notifyObservers(Object obj) |
void |
valueChanged(TreeSelectionEvent evt) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
protected PdfFile pdfFile
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 Observable
Observable.notifyObservers(java.lang.Object)
public void valueChanged(TreeSelectionEvent evt)
valueChanged
in interface TreeSelectionListener
TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent)
public int gotoPage(int pageNumber)
PageSelectionListener
gotoPage
in interface PageSelectionListener
PageSelectionListener.gotoPage(int)
Copyright © 2015. All rights reserved.