public class About extends ViewerWidget
Icon | The URL of the Icon to display instead of the BFO logo - the image should be roughly 100 pixels wide |
---|---|
Title | The title to display (default is "Java PDF Viewer") |
Main | The main body to display. Default is the BFO Copyright message |
PDF Library | The version number of the PDF Library |
Java | The version of Java in use |
JavaScript | The JavaScript engine that's in use |
Licensed To | The details of the license for the PDF Library |
Expiry | The expiry date for the License |
Memory | The amount of memory available to the JVM |
NoFeatures | If set, the list of features will never be displayed |
This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
Modifier | Constructor and Description |
---|---|
|
About() |
protected |
About(String title) |
Modifier and Type | Method and Description |
---|---|
void |
action(ViewerEvent event)
The method that's run when this feature is activated.
|
Object |
putProperty(String key,
Object property)
Add a property to the "About" dialog.
|
static Object |
putStaticProperty(String key,
Object property)
Add a property to the "About" dialog.
|
void |
showAboutDialog(PDFViewer viewer,
boolean featurelist,
int autoclear)
Show an "About" dialog in the viewer.
|
createActionListener, getComponent, getIcon, getViewer, initialize, isButtonEnabledByDefault, isDocumentRequired, isMenuEnabledByDefault, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown
public About()
protected About(String title)
public void action(ViewerEvent event)
ViewerWidget
ActionListener
returned by the default implementation of
ViewerWidget.createActionListener()
, and by default is a no-op.action
in class ViewerWidget
public static Object putStaticProperty(String key, Object property)
Icon | The URL of the Icon to display in the dialog |
---|---|
Title | The Title displayed in the dialog |
Main | The main line of text |
PDF Library | The version of the PDF Viewer software |
Java | The version of Java being run |
JavaScript | The JavaScript implementation availabe to the Viewer |
null
to
suppress their display.public Object putProperty(String key, Object property)
putStaticProperty(java.lang.String, java.lang.Object)
method.public void showAboutDialog(PDFViewer viewer, boolean featurelist, int autoclear)
viewer
- the Viewer this about dialog relates tofeaturelist
- whether to display the list of Features available to the viewerautoclear
- the number of ms to wait before clearing the dialog. A value of 0 means
the dialog must be clicked to close.Copyright © 2001-2017 Big Faceless Organization