|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lyra.HelpManager
public class HelpManager
Class dedicated to the loading and viewing of PDF documents. The interface is similar to that offered by the Adobe Acrobat program, simply embedded within the application and used for the display of help information.
All of the button handling is completed using the ICEpdf SwingController class and methods. Hence there is no instance of an Interact Class which is typically accompanies user interface classes within this Package to separate interface and programming elements.
Nested Class Summary | |
---|---|
private class |
HelpManager.JLockedButton
Creates an extension of JButton which prevents user interface changes when certain controlling items attempt to do so. |
private class |
HelpManager.JLockedToggleButton
Creates an extension of JToggleButton which prevents user interface changes when certain controlling items attempt to do so. |
Field Summary | |
---|---|
private boolean |
Base
|
private HelpManager.JLockedButton |
buttonFirst
|
private HelpManager.JLockedButton |
buttonLast
|
private HelpManager.JLockedButton |
buttonNext
|
private HelpManager.JLockedButton |
buttonPane
|
private HelpManager.JLockedButton |
buttonPrev
|
private HelpManager.JLockedButton |
buttonPrint
|
private HelpManager.JLockedButton |
buttonSearch
|
private HelpManager.JLockedButton |
buttonZoomIn
|
private HelpManager.JLockedButton |
buttonZoomOut
|
(package private) java.lang.String |
filePath
|
private java.util.Map<java.lang.String,java.lang.String> |
Lang
|
private java.lang.String |
stateName
|
private java.lang.String |
Title
|
private HelpManager.JLockedToggleButton |
togglePan
|
private HelpManager.JLockedToggleButton |
toggleSelect
|
private HelpManager.JLockedToggleButton |
toggleWidth
|
(package private) org.icepdf.ri.common.SwingController |
viewerController
|
private javax.swing.JFrame |
viewerFrame
|
private javax.swing.JPanel |
viewerPanel
|
Constructor Summary | |
---|---|
HelpManager()
Standard constructor method. |
|
HelpManager(java.util.Map<java.lang.String,java.lang.String> lang,
java.lang.String path)
Main constructor method which is used specifically to carry forth language independence. |
|
HelpManager(java.util.Map<java.lang.String,java.lang.String> lang,
java.lang.String title,
java.lang.String path)
Main constructor method which is used specifically to carry forth language independence. |
Method Summary | |
---|---|
private javax.swing.JToolBar |
buildCompleteToolBar()
This method is used specifically to generate the complete Tool Bar element which is required for easy operation of the PDF viewer. |
private javax.swing.JPanel |
buildViewerPanel(org.icepdf.ri.common.SwingViewBuilder factory)
The default buildViewerPanel method used by the PDF libraries tends to offer little to no custom capabilities. |
void |
closeViewer()
Since these elements will be stored for a period of time, it may come in handy to be able to dispose of their resources once we plan to get rid of them. |
private javax.swing.JButton |
getButtonFirst()
This method initialises buttonFirst |
private javax.swing.JButton |
getButtonLast()
This method initialises buttonLast |
private javax.swing.JButton |
getButtonNext()
This method initialises buttonNext |
private javax.swing.JButton |
getButtonPane()
This method initialises buttonPane |
private javax.swing.JButton |
getButtonPrev()
This method initialises buttonPrev. |
private javax.swing.JButton |
getButtonPrint()
This method initialises buttonPrint |
private javax.swing.JButton |
getButtonSearch()
This method initialises buttonSearch |
private javax.swing.JButton |
getButtonZoomIn()
This method initialises buttonZoomIn |
private javax.swing.JButton |
getButtonZoomOut()
This method initialises buttonZoomOut |
java.lang.String |
getName()
Name allows to keep a certain amount of state information on exactly what this viewer is displaying. |
private javax.swing.JToggleButton |
getTogglePan()
This method initialises togglePan. |
private javax.swing.JToggleButton |
getToggleSelect()
This method initialises toggleSelect |
private javax.swing.JToggleButton |
getToggleWidth()
This method initialises toggleWidth. |
javax.swing.JFrame |
getViewerFrame()
The viewer component is what we really want when the viewer is called. |
javax.swing.JPanel |
getViewerPanel()
This is an instance of the viewer panel that is to be embedded within an existing element such as a JFrame. |
boolean |
isDefault()
We do not necessarily care to do anything overly complex when the visual editor constructor is enacted. |
void |
setName(java.lang.String name)
Name allows to keep a certain amount of state information on exactly what this viewer is displaying. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.icepdf.ri.common.SwingController viewerController
java.lang.String filePath
private HelpManager.JLockedButton buttonPrint
private HelpManager.JLockedButton buttonSearch
private HelpManager.JLockedButton buttonPane
private HelpManager.JLockedButton buttonFirst
private HelpManager.JLockedButton buttonPrev
private HelpManager.JLockedButton buttonNext
private HelpManager.JLockedButton buttonLast
private HelpManager.JLockedButton buttonZoomIn
private HelpManager.JLockedButton buttonZoomOut
private HelpManager.JLockedToggleButton togglePan
private HelpManager.JLockedToggleButton toggleSelect
private HelpManager.JLockedToggleButton toggleWidth
private javax.swing.JPanel viewerPanel
private javax.swing.JFrame viewerFrame
private java.lang.String stateName
private java.util.Map<java.lang.String,java.lang.String> Lang
private java.lang.String Title
private boolean Base
Constructor Detail |
---|
public HelpManager()
public HelpManager(java.util.Map<java.lang.String,java.lang.String> lang, java.lang.String path)
lang
- Language element.path
- String element with path to PDF document.public HelpManager(java.util.Map<java.lang.String,java.lang.String> lang, java.lang.String title, java.lang.String path)
lang
- Language element.title
- String containing window title.path
- String element with path to PDF document.Method Detail |
---|
public boolean isDefault()
public javax.swing.JPanel getViewerPanel()
public javax.swing.JFrame getViewerFrame()
private javax.swing.JPanel buildViewerPanel(org.icepdf.ri.common.SwingViewBuilder factory)
This method will implement many of the features found in the source of buildViewerPanel but will also adapt it to suit out needs. Most specifically the capabilities provided in the tool bar.
factory
- SwingViewBuilder factory object.
private javax.swing.JToolBar buildCompleteToolBar()
private javax.swing.JButton getButtonPrint()
private javax.swing.JButton getButtonSearch()
private javax.swing.JButton getButtonPane()
private javax.swing.JButton getButtonFirst()
private javax.swing.JButton getButtonPrev()
private javax.swing.JButton getButtonNext()
private javax.swing.JButton getButtonLast()
private javax.swing.JToggleButton getToggleWidth()
private javax.swing.JButton getButtonZoomIn()
private javax.swing.JButton getButtonZoomOut()
private javax.swing.JToggleButton getTogglePan()
private javax.swing.JToggleButton getToggleSelect()
public void closeViewer()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- String containing name information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |