public class FullScreenMode extends ViewerWidget
PDF.setOption("view.fullscreen")
).
The name of this feature is FullScreen
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.
Constructor and Description |
---|
FullScreenMode() |
Modifier and Type | Method and Description |
---|---|
void |
action(ViewerEvent event)
The method that's run when this feature is activated.
|
void |
initialize(PDFViewer viewer)
Called when the feature is first added to a viewer
|
void |
setFullScreen(boolean fullscreen,
DocumentViewport viewport)
Set the specified Viewport to be the fullscreen viewport or not
|
createActionListener, getComponent, getIcon, getViewer, isButtonEnabledByDefault, isDocumentRequired, isMenuEnabledByDefault, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ViewerWidget
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 void setFullScreen(boolean fullscreen, DocumentViewport viewport)
fullscreen
- whether to display the viewport as fullscreenviewport
- the DocumentViewportCopyright © 2001-2017 Big Faceless Organization