Package com.teamdev.jxbrowser.plugin
Interface PluginSettings
public interface PluginSettings
The settings to configure the available Chromium
Plugins
.- Since:
- 7.9
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disables the built-in PDF viewer.void
Enables the built-in PDF viewer.boolean
Indicates whether the built-in PDF viewer is enabled or not.
-
Method Details
-
enablePdfViewer
void enablePdfViewer()Enables the built-in PDF viewer. Does nothing if the PDF viewer is already enabled.- Throws:
ObjectClosedException
- when its profile is closed- Since:
- 7.9
-
disablePdfViewer
void disablePdfViewer()Disables the built-in PDF viewer. Does nothing if the PDF viewer is already disabled.- Throws:
ObjectClosedException
- when its profile is closed- Since:
- 7.9
-
isPdfViewerEnabled
boolean isPdfViewerEnabled()Indicates whether the built-in PDF viewer is enabled or not. This setting controls how JxBrowser handles navigations to web pages embedding PDF documents. When the PDF viewer is enabled, then the PDF document will be displayed in the PDF viewer. Otherwise, the engine will download the PDF document, like any other resource that cannot be rendered in the browser. The download can be configured via theStartDownloadCallback
.Changing this setting affects only subsequent navigations and does not affect the already loaded web pages.
By default, the PDF viewer is enabled.
- Throws:
ObjectClosedException
- when its profile is closed- Since:
- 7.9
-