Package com.lowagie.rups.controller
Class RupsController
java.lang.Object
java.util.Observable
com.lowagie.rups.controller.RupsController
- All Implemented Interfaces:
PageSelectionListener
,EventListener
,TreeSelectionListener
public class RupsController
extends Observable
implements TreeSelectionListener, PageSelectionListener
This class controls all the GUI components that are shown in the RUPS application: the menu bar, the panels,...
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSplitPane
Contains all other components: the page panel, the outline tree, etc.protected RupsMenuBar
The JMenuBar for the RUPS application.protected PdfFile
The Pdf file that is currently open in the application.protected PdfReaderController
Object with the GUI components for iText. -
Constructor Summary
ConstructorsConstructorDescriptionRupsController
(Dimension dimension) Constructs the GUI components of the RUPS application. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the master component.Getter for the menubar.int
gotoPage
(int pageNumber) Goes to a specific page number in a document.void
notifyObservers
(Object obj) void
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
-
Field Details
-
pdfFile
The Pdf file that is currently open in the application. -
readerController
Object with the GUI components for iText.- Since:
- iText 5.0.0 (renamed from reader which was confusing because reader is normally used for a PdfReader instance)
-
masterComponent
Contains all other components: the page panel, the outline tree, etc.
-
-
Constructor Details
-
RupsController
Constructs the GUI components of the RUPS application.- Parameters:
dimension
- the Dimension of the GUi components
-
-
Method Details
-
getMenuBar
Getter for the menubar.- Returns:
- the menubar
-
getMasterComponent
Getter for the master component.- Returns:
- the master component
-
notifyObservers
- Overrides:
notifyObservers
in classObservable
- See Also:
-
valueChanged
- Specified by:
valueChanged
in interfaceTreeSelectionListener
- See Also:
-
gotoPage
public int gotoPage(int pageNumber) Description copied from interface:PageSelectionListener
Goes to a specific page number in a document.- Specified by:
gotoPage
in interfacePageSelectionListener
- Parameters:
pageNumber
- the page number to go to- Returns:
- the resulting page number. Can be different from pageNumber if pageNumber doesn't exist.
- See Also:
-