Class XFA
- java.lang.Object
-
- org.faceless.pdf2.viewer2.ViewerFeature
-
- org.faceless.pdf2.viewer2.ViewerWidget
-
- org.faceless.pdf2.viewer2.feature.XFA
-
public class XFA extends ViewerWidget
A class which suppressed warnings about missing XFA support in the PDF Viewer when JavaScript is supported. In the future this may well form the basis of XFA support in the viewer, but for now it's largely a no-op. The name of this feature is XFAThis 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.
- Since:
- 2.8
-
-
Field Summary
-
Fields inherited from class org.faceless.pdf2.viewer2.ViewerWidget
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description XFA()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCustomJavaScript(String type, String name)
Return any custom JavaScript that needs to be run by this feature on the specified JavaScript event.-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerWidget
action, addPropertyChangeListener, createActionListener, firePropertyChange, getComponent, getIcon, getViewer, initialize, isButtonEnabledByDefault, isDocumentRequired, isMenuEnabledByDefault, removePropertyChangeListener, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString
-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllEnabledFeatures, getAllFeatures, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown
-
-
-
-
Method Detail
-
getCustomJavaScript
public String getCustomJavaScript(String type, String name)
Description copied from class:ViewerFeature
Return any custom JavaScript that needs to be run by this feature on the specified JavaScript event. Unlike JavaScript from the document, this JavaScript will be run outside the security sandbox so will have the same permissions as the application. The default implementation returnsnull
.- Overrides:
getCustomJavaScript
in classViewerFeature
- Parameters:
type
- the Event type : "App", "Doc" etc.name
- the Event name : "Init", "Open", "WillClose" etc.
-
-